[Hackage] #776: cabal check gives invalid duplicate modules warning

Hackage cvs-ghc at haskell.org
Sat Dec 11 17:12:50 CET 2010

#776: cabal check gives invalid duplicate modules warning
  Reporter:  guest          |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:
  Severity:  normal         |     Keywords:         
Difficulty:  unknown        |   Ghcversion:         
  Platform:                 |  
 Given the Cabal file:


 cabal-version:      >= 1.2
 build-type:         Simple
 name:               test
 version:            4.1
 license:            GPL
 category:           Test
 author:             Test
 maintainer:         Test
 synopsis:           Test
 description:        Test

 flag extended-library

     if flag(extended-library)

 I get the {{{cabal check}}} output:

 The following warnings are likely affect your build negatively:
 * Duplicate modules in library: Test

 These warnings may cause trouble when distributing the package:
 * A 'license-file' is not specified.

 The following errors will cause portability problems on other
 * The package is missing a Setup.hs or Setup.lhs script.

 Hackage would reject this package.

 The error about Test being duplicate is incorrect - the flag means it will
 occur at most once. This bug is annoying for Hoogle, which wants to have a
 library exposing internal details, mainly for documentation purposes, and
 a normal library as well.

 Thanks, Neil

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/776>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list