From 3ef786673ff8298124cd3b5ef50c35dbb23f77e2 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 13 Feb 2024 22:51:57 +0100 Subject: Parse basic ADTs, and fix bugs --- examples/test1.hs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/test1.hs (limited to 'examples') 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 -- cgit v1.2.3-70-g09d2