summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/GADT5.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/GADT5.hs')
-rw-r--r--testsuite/tests/indexed-types/should_compile/GADT5.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/GADT5.hs b/testsuite/tests/indexed-types/should_compile/GADT5.hs
new file mode 100644
index 0000000000..69a6481fd0
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_compile/GADT5.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE TypeFamilies, GADTs #-}
+
+module GADT5 where
+
+data T a where
+ T :: T (a,b)
+ -- this works:
+ -- T :: p ~ (a,b) => T p
+
+type family F a
+
+bar :: T (F a) -> ()
+bar T = ()
+