Ticket #319 (new enhancement)

Opened 5 years ago

Warn if the source file for a module is ambigious.

Reported by: duncan Owned by:
Priority: normal Milestone:
Component: Cabal library Version: HEAD
Severity: normal Keywords:
Cc: Difficulty: normal
GHC Version: 6.8.2 Platform:

Description

For example if we are looking for a module Foo and there are files Foo.hs and Foo.y then we should use Foo.y as we do now, but we should warn about the presence of Foo.hs (and note the fact that we're ignoring it).

Similarly if we find Foo.x and Foo.y then we should warn about the one we're not using. Or arguably that should be a straight error. There's an obvious order relation between Foo.hs and Foo.y but not between Foo.x and Foo.y.

Note: See TracTickets for help on using tickets.