2 May 2005 14:33
RE: Unused variable warnings when deriving (Data)
Simon Peyton-Jones <simonpj <at> microsoft.com>
2005-05-02 12:33:14 GMT
2005-05-02 12:33:14 GMT
Good point. I've fixed this. Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces <at> haskell.org [mailto:glasgow-haskell-(Continue reading)bugs- | bounces <at> haskell.org] On Behalf Of Tomasz Zielonka | Sent: 27 April 2005 10:09 | To: GHC-bugs | Subject: Unused variable warnings when deriving (Data) | | Hello! | | When I compile the following module with "ghc -W -c A.hs" I see several | unnecessary warning messages: | | $ ghc --version | The Glorious Glasgow Haskell Compilation System, version 6.4 | $ ghc -no-recomp -W -c A.hs | | <no location info>: Warning: Defined but not used: `k' | | <no location info>: Warning: Defined but not used: `k' | | <no location info>: Warning: Defined but not used: `k' | | Adding parameters to data constructors makes the warnings disappear, | example:
RSS Feed