We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac335f commit 1bda4fdCopy full SHA for 1bda4fd
Playground.lhs
@@ -31,6 +31,14 @@ f 1 = Cons 1 Nil
31
'f 0' binds 'List a Z' to the type of 'f'
32
The compiler will shout at us because expected 'List a Z' will not match the impossible 'List a (S Z)'
33
34
+AVL Tree
35
+
36
+>data AVL a n where
37
+> Empty :: AVL a Z
38
+> Node :: AVL a b -> AVL a b -> AVL a (S b)
39
+> LNode :: AVL a (S b) -> AVL a b -> AVL a (S (S b))
40
+> RNode :: AVL a b -> AVL a (S b) -> AVL a (S (S b))
41
42
Existential Quantification
43
44
Useless
0 commit comments