Unable to satisfy "Defined but not used: data constructor" warning
I am unable to satisfy "Defined but not used: data constructor" warning. I have defined a data type like:
data FooBar = FooBar {}
And if I export FooBar
then I get Defined but not used: data constructor warning. If I export FooBar(..)
then I get The export item suggests that has (in-scope) constructors or class methods, but it has none. How can I export such data type without a warning?
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | mmitar@gmail.com |
Operating system | |
Architecture |