summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/indexed-types/should_compile/ind2.hs
diff options
context:
space:
mode:
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>2006-10-22 17:40:19 +0000
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>2006-10-22 17:40:19 +0000
commitf15029eafae8af530f359aeacd2c23d3f4d13a1b (patch)
tree3275fe1435b7b2198860dfcf4c565606342a041c /testsuite/tests/ghc-regress/indexed-types/should_compile/ind2.hs
parent58352225f6808b918f7f41ac8596712e68fcf23a (diff)
downloadhaskell-f15029eafae8af530f359aeacd2c23d3f4d13a1b.tar.gz
Partitioned indexed-types tests into fail/compile/run dirs
Diffstat (limited to 'testsuite/tests/ghc-regress/indexed-types/should_compile/ind2.hs')
-rw-r--r--testsuite/tests/ghc-regress/indexed-types/should_compile/ind2.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-regress/indexed-types/should_compile/ind2.hs b/testsuite/tests/ghc-regress/indexed-types/should_compile/ind2.hs
new file mode 100644
index 0000000000..f4cf383ba8
--- /dev/null
+++ b/testsuite/tests/ghc-regress/indexed-types/should_compile/ind2.hs
@@ -0,0 +1,9 @@
+{-# OPTIONS -findexed-types #-}
+
+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)
+