summaryrefslogtreecommitdiff
path: root/compiler/ilxGen/tests/test7.hs
blob: c1460380523c28f2beeadf017b041acfe894bbab (plain)
1
2
3
4
5
6
7
8
data List a = Cons a (List a)

hdL (Cons x y) = x
tlL (Cons x y) = y

mk f x = f x (mk f x)
main = putStr (hdL (tlL (mk Cons "hello world!\n")))