added proto-monad
authorChris Barker <barker@kappa.linguistics.fas.nyu.edu>
Mon, 25 Oct 2010 19:10:17 +0000 (15:10 -0400)
committerChris Barker <barker@kappa.linguistics.fas.nyu.edu>
Mon, 25 Oct 2010 19:10:17 +0000 (15:10 -0400)
assignment5.mdwn

index f6ae94b..4a4e06d 100644 (file)
@@ -185,7 +185,7 @@ binary trees working in OCAML.
 
    Consider the following list type:
 
 
    Consider the following list type:
 
-    datatype ’a list = Nil | Cons of ’a * ’a list
+    type ’a list = Nil | Cons of ’a * ’a list
 
    We can encode τ lists, lists of elements of type τ as follows:
 
 
    We can encode τ lists, lists of elements of type τ as follows: