comparison src/monoize.sml @ 73:8b611ecc5f2d

Corify efold
author Adam Chlipala <adamc@hcoop.net>
date Thu, 26 Jun 2008 11:32:29 -0400
parents 8e9920db39f2
children 275aaeb73f1f
comparison
equal deleted inserted replaced
72:0ee10f4d73cf 73:8b611ecc5f2d
95 | L.ECApp _ => poly () 95 | L.ECApp _ => poly ()
96 | L.ECAbs _ => poly () 96 | L.ECAbs _ => poly ()
97 97
98 | L.ERecord xes => (L'.ERecord (map (fn (x, e, t) => (monoName env x, monoExp env e, monoType env t)) xes), loc) 98 | L.ERecord xes => (L'.ERecord (map (fn (x, e, t) => (monoName env x, monoExp env e, monoType env t)) xes), loc)
99 | L.EField (e, x, _) => (L'.EField (monoExp env e, monoName env x), loc) 99 | L.EField (e, x, _) => (L'.EField (monoExp env e, monoName env x), loc)
100 | L.EFold _ => poly ()
100 end 101 end
101 102
102 fun monoDecl env (all as (d, loc)) = 103 fun monoDecl env (all as (d, loc)) =
103 let 104 let
104 fun poly () = 105 fun poly () =