diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/ind2.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_compile/ind2.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/ind2.hs b/testsuite/tests/indexed-types/should_compile/ind2.hs new file mode 100644 index 0000000000..de5d9d6a86 --- /dev/null +++ b/testsuite/tests/indexed-types/should_compile/ind2.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE TypeFamilies #-} + +module ShouldCompile where + +import Ind2_help(C(..)) + +zipT :: (C a, C b) => T a -> T b -> T (a,b) +zipT x y = mkT (unT x, unT y) + |