summaryrefslogtreecommitdiff
path: root/testsuite/tests/stranal/should_compile/default.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/stranal/should_compile/default.hs')
-rw-r--r--testsuite/tests/stranal/should_compile/default.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/stranal/should_compile/default.hs b/testsuite/tests/stranal/should_compile/default.hs
new file mode 100644
index 0000000000..43eb9f0633
--- /dev/null
+++ b/testsuite/tests/stranal/should_compile/default.hs
@@ -0,0 +1,16 @@
+module Test where
+data Boolean = FF | TT
+data Pair a b = MkPair a b
+data LList alpha = Nill | Conss alpha (LList alpha)
+data Nat = Zero | Succ Nat
+data Tree x = Leaf x | Node (Tree x) (Tree x)
+data A a = MkA a (A a)
+
+append :: LList a -> LList a -> LList a
+append xs ys = case xs of
+ Conss z zs -> Conss z (append zs ys)
+ v -> ys
+
+
+
+