
#350: cabal should check for duplicate module names ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------+----------------------------------------------- If I write a list like: {{{other-modules: Foo.Bar.Quux, Foo.Bar.Blat, Foo.Bar.Quux}}} in my {{{.cabal}}} file, {{{setup configure}}} will happily accept it. But then when I build, GHC will give me an error message like: {{{ <no location info>: module `blat:Foo.Bar.Quux' is defined in multiple files: Foo/Bar/Quux.hs Foo/Bar/Quux.hs }}} which is very confusing! Can Cabal check for duplicates in the exposed- modules and other-modules lists? -Tim -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/350 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects