#3568: Command line flag "exclude-module" not recognized
-----------------------------+----------------------------------------------
Reporter:  heatsink          |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Driver          
 Version:  6.10.4            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 The exclude-module flag used with {{{ghc -M}}} does not work as
 advertised.  The deprecated syntax works correctly, but the new syntax is
 parsed incorrectly.

 {{{
 module Foo where
 import Bar -- Bar.hs does not exist

 -- On the command line:
 $ ghc -M Foo.hs
 Foo.hs:4:7:
     Could not find module `Bar':
       Use -v to see a list of the files searched for.

 $ ghc -M Foo.hs -optdep --exclude-module=Bar
 on the commandline:
     Warning: -optdep--exclude-module=Bar is deprecated: Use -exclude-
 module instead

 $ ghc -M Foo.hs -exclude-module=Bar
 ghc: cannot use `-M' with `-e'
 }}}

 The command line parsing was apparently changed to resolve #1248.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3568>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to