#3082: Unclear warning message: Attempting to re-export hidden constructors
-----------------------------+----------------------------------------------
Reporter: ksf | Owner:
Type: proposal | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: minor
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
Just stumbled upon this after changing a type def to a data def:
Foo.hs:
{{{
module Foo (Foo) where
data Foo = Bar | Baz
}}}
Bar.hs:
{{{
module Bar (Foo.Foo(..)) where
import Foo
}}}
{{{
Bar.hs:1:12:
Warning: The export item `Foo(..)'
suggests that `Foo' has constructors or class methods,
but it has none
}}}
...while it actually has constructors.
I think it should say "The export item 'Foo(..)' suggests that 'Foo' has
visible constructors or class methods, but it has none", or something even
more specific to the re-export case.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3082>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs