summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T5236.hs
blob: 07b31c321800a143bc8ba440a67b35dd0dc494fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleContexts  #-}

module Main where 

data A
data B

class Id a b | a -> b, b -> a

instance Id A A
instance Id B B

loop :: Id A B => Bool
loop = True

f :: Bool 
f = loop


main :: IO () 
main = return ()