Ticket #3568 (closed bug: fixed)
Command line flag "exclude-module" not recognized
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
