Reorganisation of the source tree
[ghc-hetmet.git] / compiler / ilxGen / tests / test6.hs
diff --git a/compiler/ilxGen/tests/test6.hs b/compiler/ilxGen/tests/test6.hs
new file mode 100644 (file)
index 0000000..17e51ab
--- /dev/null
@@ -0,0 +1,8 @@
+data List a = Cons a (List a)
+
+hdL (Cons x y) = x
+tlL (Cons x y) = y
+
+test = Cons "hello world\n" test
+main = putStr (hdL (tlL test))
+