aboutsummaryrefslogtreecommitdiff
path: root/examples/test1.hs
blob: 083a87605526b0e1089ebcafdef1164452c45673 (plain)
1
2
3
4
5
6
7
8
data Tree a
  = Node (Tree a) a (Tree a)
  | Leaf

foo = 1
bar = 1 + 2
f x = x * 3
g y = f (y - 2) + 7