-fwarn-unused-matches

Simon Peyton-Jones IMCEAEX-_O=MICROSOFT_OU=NORTHAMERICA_CN=RECIPIENTS_CN=428592 at microsoft.com
Fri Mar 28 09:43:12 EST 2003


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 at botik.ru]
| Sent: 28 March 2003 13:10
| To: glasgow-haskell-bugs at haskell.org
| 
| 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 at botik.ru
| 
| -----------------
| Serge Mechveliani
| mechvel at botik.ru
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs




More information about the Glasgow-haskell-bugs mailing list