[Hackage] #350: cabal should check for duplicate module names

Hackage trac at galois.com
Thu Sep 11 20:04:17 EDT 2008


#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


More information about the cabal-devel mailing list