diff tests/cfold.lac @ 71:6431b315a1e3

Elaborate efold
author Adam Chlipala <adamc@hcoop.net>
date Thu, 26 Jun 2008 11:09:30 -0400
parents 2e0f3b21fb85
children
line wrap: on
line diff
--- a/tests/cfold.lac	Thu Jun 26 10:02:34 2008 -0400
+++ b/tests/cfold.lac	Thu Jun 26 11:09:30 2008 -0400
@@ -1,12 +1,15 @@
 con currier = fold (fn nm => fn t => fn acc => t -> acc) {}
 
-con greenCurry = currier []
+con greenCurryIngredients :: {Type} = []
+con greenCurry = currier greenCurryIngredients
 val greenCurry : greenCurry = {}
 
-con redCurry = currier [A = int, B = string]
+con redCurryIngredients = [A = int, B = string]
+con redCurry = currier redCurryIngredients
 val redCurry : redCurry = fn x : int => fn y : string => {}
 
-con yellowCurry = currier [A = string, B = int, C = float]
+con yellowCurryIngredients = [A = string, B = int, C = float]
+con yellowCurry = currier yellowCurryIngredients
 val yellowCurry : yellowCurry = fn x => fn y => fn z => {}
 
 val main = yellowCurry