summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T4093a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/T4093a.hs')
-rw-r--r--testsuite/tests/indexed-types/should_fail/T4093a.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/T4093a.hs b/testsuite/tests/indexed-types/should_fail/T4093a.hs
new file mode 100644
index 0000000000..06168f577e
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_fail/T4093a.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TypeFamilies #-}
+module T4093a where
+
+type family Foo x
+type instance Foo () = Maybe ()
+
+hang :: (Foo e ~ Maybe e) => Foo e
+hang = Just ()