summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/indexed-types/should_compile/Class3.hs
blob: 6bea22e1a4382701a8178d8a4996b105f29f00b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE TypeFamilies #-}

module Class3 where

class C a where
  foo :: a -> a
instance C ()

bar :: (a ~ ()) => a -> a
bar = foo