diff tests/cfold.ur @ 244:71bafe66dbe1

Laconic -> Ur
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 08:32:18 -0400
parents tests/cfold.lac@6431b315a1e3
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/cfold.ur	Sun Aug 31 08:32:18 2008 -0400
@@ -0,0 +1,15 @@
+con currier = fold (fn nm => fn t => fn acc => t -> acc) {}
+
+con greenCurryIngredients :: {Type} = []
+con greenCurry = currier greenCurryIngredients
+val greenCurry : greenCurry = {}
+
+con redCurryIngredients = [A = int, B = string]
+con redCurry = currier redCurryIngredients
+val redCurry : redCurry = fn x : int => fn y : string => {}
+
+con yellowCurryIngredients = [A = string, B = int, C = float]
+con yellowCurry = currier yellowCurryIngredients
+val yellowCurry : yellowCurry = fn x => fn y => fn z => {}
+
+val main = yellowCurry