comparison src/reduce_local.sml @ 626:230654093b51

demo/hello compiles with kind polymorphism
author Adam Chlipala <adamc@hcoop.net>
date Sun, 22 Feb 2009 17:17:01 -0500
parents 588b9d16b00a
children 4a125bbc602d
comparison
equal deleted inserted replaced
625:47947d6e9750 626:230654093b51
83 end 83 end
84 84
85 | EAbs (x, dom, ran, e) => (EAbs (x, dom, ran, exp (Unknown :: env) e), loc) 85 | EAbs (x, dom, ran, e) => (EAbs (x, dom, ran, exp (Unknown :: env) e), loc)
86 86
87 | ECApp (e, c) => (ECApp (exp env e, c), loc) 87 | ECApp (e, c) => (ECApp (exp env e, c), loc)
88 | ECAbs (x, k, e) => (ECAbs (x, k, exp env e), loc)
88 89
89 | ECAbs (x, k, e) => (ECAbs (x, k, exp env e), loc) 90 | EKApp (e, k) => (EKApp (exp env e, k), loc)
91 | EKAbs (x, e) => (EKAbs (x, exp env e), loc)
90 92
91 | ERecord xcs => (ERecord (map (fn (x, e, t) => (x, exp env e, t)) xcs), loc) 93 | ERecord xcs => (ERecord (map (fn (x, e, t) => (x, exp env e, t)) xcs), loc)
92 | EField (e, c, others) => 94 | EField (e, c, others) =>
93 let 95 let
94 val e = exp env e 96 val e = exp env e