diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/NotRelaxedExamples.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/NotRelaxedExamples.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/NotRelaxedExamples.hs b/testsuite/tests/indexed-types/should_fail/NotRelaxedExamples.hs new file mode 100644 index 0000000000..d41f86b3a1 --- /dev/null +++ b/testsuite/tests/indexed-types/should_fail/NotRelaxedExamples.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE TypeFamilies #-} + +module NotRelaxedExamples where + +type family F1 a +type family F2 a +type family F3 a + +type instance F1 Char = F1 (F1 Char) +type instance F2 [x] = F2 [x] +type instance F3 Bool = F3 [Char] |