summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/parser/should_compile/read014.hs
blob: 55fc053a8b8d3ec572fa55a0a01a5b74923bb5bc (plain)
1
2
3
4
5
6
7
8
-- !!! Empty export lists are legal (and useful.)
module ShouldCompile () 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