summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/simpl002.hs
blob: acb0a146e7c61f466a021a3e50932ef2b66d9eea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}

-- !!! class/instance mumble that failed Lint at one time
--
module ShouldCompile where
class Foo a where
   op :: Int -> a -> Bool

data Wibble a b c = MkWibble a b c

instance (Foo a, Foo b, Foo c) => Foo (Wibble a b c) where
    op x y = error "xxx"