diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/OversatDecomp.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_compile/OversatDecomp.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/OversatDecomp.hs b/testsuite/tests/indexed-types/should_compile/OversatDecomp.hs new file mode 100644 index 0000000000..a93256c92c --- /dev/null +++ b/testsuite/tests/indexed-types/should_compile/OversatDecomp.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE TypeFamilies, MultiParamTypeClasses #-} + +module OversatDecomp where + +class Blah f a where + blah :: a -> T f f a + +class A f where + type T f :: (* -> *) -> * -> * + +wrapper :: Blah f a => a -> T f f a +wrapper x = blah x |