#1422: wrong warning for exporting all constructors of a void type
--------------------------+-------------------------------------------------
Reporter: SamB | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.6
Severity: normal | Keywords:
Difficulty: Easy (1 hr) | Os: Unknown
Testcase: | Architecture: Unknown
--------------------------+-------------------------------------------------
{{{
{-# LANGUAGE EmptyDataDecls #-}
module WrongExportWarning (Empty(..)) where
data Empty
}}}
produces the incorrect warning:
{{{
WrongExportWarning.hs:3:27:
Warning: The export item `Empty(..)'
suggests that `Empty' has constructor or class methods
but it has none; it is a type synonym or abstract type or
class
}}}
If this was already fixed, I state in my defense that trac's search sucks.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1422>
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