summaryrefslogtreecommitdiff
path: root/tests/efold.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/efold.ur')
-rw-r--r--tests/efold.ur8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/efold.ur b/tests/efold.ur
new file mode 100644
index 00000000..317d0852
--- /dev/null
+++ b/tests/efold.ur
@@ -0,0 +1,8 @@
+val currier : rs :: {Type} -> Cfold.currier rs =
+ fold [Cfold.currier] (fn nm :: Name => fn t :: Type => fn rest :: {Type} => fn acc => fn x : t => acc) {}
+
+val greenCurry : Cfold.greenCurry = currier [Cfold.greenCurryIngredients]
+val redCurry : Cfold.redCurry = currier [Cfold.redCurryIngredients]
+val yellowCurry : Cfold.yellowCurry = currier [Cfold.yellowCurryIngredients]
+
+val main = yellowCurry