|
RE: -fwarn-unused-matches: msg#00079lang.haskell.glasgow.bugs
Nope. It's correct. the 'x' in the pattern (x,y) is defined but not used. simon | -----Original Message----- | From: Serge D. Mechveliani [mailto:mechvel@xxxxxxxx] | Sent: 28 March 2003 13:10 | To: glasgow-haskell-bugs@xxxxxxxxxxx | | Dear ghc-5.02.2, | | ghc -c -fwarn-unused-matches | says | Warning: Defined but not used: x | | when compiling the function | | f :: Eq a => [(a, a)] -> (a, a) -> [(a, a)] | f ps (x, y) = [(z, y) | (z, x) <- ps] | | Is it a bug? | | Answer, please, to mechvel@xxxxxxxx | | ----------------- | Serge Mechveliani | mechvel@xxxxxxxx | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-604466 ] x86 NCG bug with stdcall f.i. "wrapper", SourceForge.net |
|---|---|
| Next by Date: | GHC rejects empty case, Lauri Alanko |
| Previous by Thread: | RE: -fwarn-unused-matches, Simon Marlow |
| Next by Thread: | [ ghc-Bugs-604466 ] x86 NCG bug with stdcall f.i. "wrapper", SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |