@@ -20,13 +20,13 @@ testTree = Node (Node Leaf "Jim" Leaf)
20 (Node Leaf "Bob" Leaf))
20 (Node Leaf "Bob" Leaf))
22treeTagAux : BTree a -> { [STATE Int] } Eff (BTree (Int, a))
22treeTagAux : BTree a -> { [STATE Int] } Eff (BTree (Int, a))
23−treeTagAux Leaf = return Leaf
23+treeTagAux Leaf = pure Leaf
24treeTagAux (Node l x r)
24treeTagAux (Node l x r)
25 = do l' <- treeTagAux l
25 = do l' <- treeTagAux l
27 put (i + 1)
27 put (i + 1)
28 r' <- treeTagAux r
28 r' <- treeTagAux r
29− return (Node l' (i, x) r')
29+ pure (Node l' (i, x) r')
31treeTag : (i : Int) -> BTree a -> BTree (Int, a)
31treeTag : (i : Int) -> BTree a -> BTree (Int, a)
32treeTag i x = runPure (do put i
32treeTag i x = runPure (do put i