id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,difficulty,ghcversion,platform
776,cabal check gives invalid duplicate modules warning,guest,,"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

library
    if flag(extended-library)
        exposed-modules:
            Test
    else
        other-modules:
            Test
}}}

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 environments:
* 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",defect,new,normal,,Cabal library,1.8.0.2,minor,,,ndmitchell@…,unknown,,
