blob: ed45e07d4765f60af5821ade56b5623dbcfb8ad5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{-# LANGUAGE UndecidableSuperClasses #-}
module T14774 where
class C a => D a where
cop :: a -> Bool
class D a => C a where
dop :: a -> a
f :: C a => Int -> a -> Bool
f 0 x = cop x
f n x = f (n-1) x
|