|
Unused variable warnings when deriving (Data): msg#00136lang.haskell.glasgow.bugs
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: data T = A Int | B Char ---------------- A.hs ------------------- {-# OPTIONS -fglasgow-exts #-} module A where import Data.Generics data T = A | B deriving (Typeable, Data) ----------------------------------------- Best regards Tomasz
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86, Simon Marlow |
|---|---|
| Next by Date: | RE: System/CPUTime.hs hsc2hs-inplace error, Simon Marlow |
| Previous by Thread: | FW: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86, Conal Elliott |
| Next by Thread: | [ ghc-Bugs-1191681 ] parse error on input, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |