wrong warning for exporting all constructors of a void type
{-# 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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.6 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |