summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/InstEqContext.hs
blob: ec78b50a43c5ea89344febc300b6183345686dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# 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