comparison src/cjrize.sml @ 290:df00701f2323

'read' type class
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 11:53:30 -0400
parents 4260ad920c36
children 59dc042629b9
comparison
equal deleted inserted replaced
289:0cc956a3216f 290:df00701f2323
209 end 209 end
210 val (pc, sm) = cifyPatCon (pc, sm) 210 val (pc, sm) = cifyPatCon (pc, sm)
211 in 211 in
212 ((L'.ECon (dk, pc, eo), loc), sm) 212 ((L'.ECon (dk, pc, eo), loc), sm)
213 end 213 end
214 | L.ESome (t, e) =>
215 let
216 val (t, sm) = cifyTyp (t, sm)
217 val (e, sm) = cifyExp (e, sm)
218 in
219 ((L'.ESome (t, e), loc), sm)
220 end
214 | L.EFfi mx => ((L'.EFfi mx, loc), sm) 221 | L.EFfi mx => ((L'.EFfi mx, loc), sm)
215 | L.EFfiApp (m, x, es) => 222 | L.EFfiApp (m, x, es) =>
216 let 223 let
217 val (es, sm) = ListUtil.foldlMap cifyExp sm es 224 val (es, sm) = ListUtil.foldlMap cifyExp sm es
218 in 225 in