Mercurial > urweb
annotate tests/efold.lac @ 73:8b611ecc5f2d
Corify efold
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 26 Jun 2008 11:32:29 -0400 |
parents | 6431b315a1e3 |
children | 144d082b47ae |
rev | line source |
---|---|
adamc@71 | 1 val currier : rs :: {Type} -> Cfold.currier rs = |
adamc@71 | 2 fold [Cfold.currier] (fn nm :: Name => fn t :: Type => fn rest :: {Type} => fn acc => fn x => acc) {} |
adamc@71 | 3 |
adamc@71 | 4 val greenCurry : Cfold.greenCurry = currier [Cfold.greenCurryIngredients] |
adamc@71 | 5 val redCurry : Cfold.redCurry = currier [Cfold.redCurryIngredients] |
adamc@71 | 6 val yellowCurry : Cfold.yellowCurry = currier [Cfold.yellowCurryIngredients] |
adamc@73 | 7 |
adamc@73 | 8 val main = yellowCurry |