projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
compiler/ilxGen/tests/test6.hs
@@ -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))
+