diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/TyFamUndec.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_fail/TyFamUndec.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/TyFamUndec.hs b/testsuite/tests/indexed-types/should_fail/TyFamUndec.hs new file mode 100644 index 0000000000..2c81faab2d --- /dev/null +++ b/testsuite/tests/indexed-types/should_fail/TyFamUndec.hs @@ -0,0 +1,8 @@ +{-# LANGUAGE TypeFamilies #-} + +module ShouldFail where + +type family T a +type instance T (a, [b]) = T (b, b) -- var occurs more often +type instance T (a, Maybe b) = T (a, Maybe b) -- not smaller +type instance T (a, IO [b]) = T (a, T b) -- nested tyfam application |