diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/Simple20.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_compile/Simple20.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/Simple20.hs b/testsuite/tests/indexed-types/should_compile/Simple20.hs new file mode 100644 index 0000000000..81a8522804 --- /dev/null +++ b/testsuite/tests/indexed-types/should_compile/Simple20.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE TypeFamilies #-} + +module ShouldCompile where + +type family F a +type instance F [a] = [F a] + +foo :: (F [a] ~ a) => a +foo = undefined |