Mercurial > urweb
diff src/corify.sml @ 198:ab86aa858e6c
'Option' datatype encoding
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 09 Aug 2008 19:23:31 -0400 |
parents | df5fd8f6913a |
children | 0343557355fc |
line wrap: on
line diff
--- a/src/corify.sml Sat Aug 09 16:54:04 2008 -0400 +++ b/src/corify.sml Sat Aug 09 19:23:31 2008 -0400 @@ -532,7 +532,7 @@ ((x, n, co), st) end) st xncs - val dk = CoreUtil.classifyDatatype xncs + val dk = ElabUtil.classifyDatatype xncs val t = (L'.CNamed n, loc) val nxs = length xs - 1 val t = ListUtil.foldli (fn (i, _, t) => (L'.CApp (t, (L'.CRel (nxs - i), loc)), loc)) t xs @@ -674,7 +674,7 @@ | L.SgiDatatype (x, n, xs, xnts) => let val k = (L'.KType, loc) - val dk = ExplUtil.classifyDatatype xnts + val dk = ElabUtil.classifyDatatype xnts val (st, n') = St.bindCon st x n val (xnts, (ds', st, cmap, conmap)) = ListUtil.foldlMap