-fwarn-unused-matches

Serge D. Mechveliani mechvel at botik.ru
Fri Mar 28 08:10:29 EST 2003


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



More information about the Glasgow-haskell-bugs mailing list