#4486: Unable to satisfy "Defined but not used: data constructor" warning
---------------------------------+------------------------------------------
    Reporter:  mitar             |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  6.12.3            |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 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?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4486>
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

Reply via email to