ghc-4.02  -c  T.hs    yields  T.hs:1:11: parse error on input: ")"

for
-----------------------------------------------------------------
module T () where

ng1 x y = negate y

instance (Num a, Num b) => Num (a,b)
  where
  negate (a,b) = (ng 'c' a, ng1 'c' b)   where  ng x y = negate y
-----------------------------------------------------------------

This is against Haskell-98, is it?

Further, change this `()' to `(ng1)'.
Then the compiler does not warn of un-used variable x in the `negate'
definition. Setting `-fwarn-unused-matches' does not help.
Though, the ghc-4.02 docs mentions this un-used warning facility.

What is wrong here?

------------------
Sergey Mechveliani
[EMAIL PROTECTED]

Reply via email to