diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-02-13 22:51:57 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-02-13 22:51:57 +0100 |
commit | 3ef786673ff8298124cd3b5ef50c35dbb23f77e2 (patch) | |
tree | e7c0cb4ac969dff2b8f2030f76df4bf0723294b1 /examples/test1.hs | |
parent | f8ef28316dd8adeaf8d4d3e0f6e310e26ac19028 (diff) |
Parse basic ADTs, and fix bugs
Diffstat (limited to 'examples/test1.hs')
-rw-r--r-- | examples/test1.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/test1.hs b/examples/test1.hs new file mode 100644 index 0000000..083a876 --- /dev/null +++ b/examples/test1.hs @@ -0,0 +1,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 |