Mercurial > urweb
diff doc/intro.ur @ 1814:2d9f831d45c9
Update tutorial for Ur/Web changes
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Mon, 03 Sep 2012 09:51:23 -0400 |
parents | a479947efbcd |
children | 544199d8b14a |
line wrap: on
line diff
--- a/doc/intro.ur Thu Aug 30 17:58:37 2012 +0400 +++ b/doc/intro.ur Mon Sep 03 09:51:23 2012 -0400 @@ -385,7 +385,7 @@ end structure Double : DOUBLE = struct - class double a = a -> a + con double a = a -> a fun double [a] (f : double a) (x : a) : a = f x fun mkDouble [a] (f : a -> a) : double a = f @@ -420,7 +420,7 @@ end structure OkType : OK_TYPE = struct - class ok a = unit + con ok a = unit fun importantOperation [a] (_ : ok a) (_ : a) = "You found an OK value!" val ok_int = () val ok_float = ()