summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/deSugar/should_compile/ds034.hs
blob: 0725a7a97ffd402f9e6a7445810e9dde14f6b977 (plain)
1
2
3
4
5
6
7
8
9
10
11
-- !!! mutually-recursive methods in an instance declaration
--
module ShouldCompile where

class Foo a where
    op1 :: a -> a 
    op2 :: a -> a 

instance Foo Int where
    op1 x = op2 x
    op2 y = op1 y