summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/indexed-types/should_fail/T4093a.hs
blob: 06168f577e775d40f38102939f828dad4f37a914 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE TypeFamilies #-}
module T4093a where

type family Foo x
type instance Foo () = Maybe ()

hang :: (Foo e ~ Maybe e) => Foo e
hang = Just ()