summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/InstEqContext.hs
blob: e178e110a59fe682ae89e2dea1d0c16b7dfa47f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{-# LANGUAGE TypeFamilies #-}

module InstEqContext  where 


{- encoding of 
 -	class C a | -> a
 -}
class a ~ Int => C a 

instance C Int

unC :: (C a) => a -> Int
unC i = undefined

test :: Int
test = unC undefined