Ticket #3568 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

Command line flag "exclude-module" not recognized

Reported by: heatsink Owned by: igloo
Priority: normal Milestone:
Component: Driver Version: 6.10.4
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

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

Changed 4 years ago by igloo

  • owner set to igloo
  • difficulty set to Unknown

Thanks for the report. I'll take a look.

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Fixed in HEAD and 6.12.

Note: See TracTickets for help on using tickets.