diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-31 08:46:22 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-31 08:46:22 -0400 |
commit | 773cc619b71ad10b8f21f6941d67947bac86885f (patch) | |
tree | 50f9c044e49642dd39c3a7574c193a2470174ca4 /src/explify.sml | |
parent | 5c3606a50dbe206eac3660135acba5855000a4ab (diff) |
Explify tables
Diffstat (limited to 'src/explify.sml')
-rw-r--r-- | src/explify.sml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/explify.sml b/src/explify.sml index 530f4b5f..689c18ca 100644 --- a/src/explify.sml +++ b/src/explify.sml @@ -129,7 +129,7 @@ fun explifySgi (sgi, loc) = | L.SgiStr (x, n, sgn) => SOME (L'.SgiStr (x, n, explifySgn sgn), loc) | L.SgiSgn (x, n, sgn) => SOME (L'.SgiSgn (x, n, explifySgn sgn), loc) | L.SgiConstraint _ => NONE - | L.SgiTable _ => raise Fail "Explify SgiTable" + | L.SgiTable (nt, x, n, c) => SOME (L'.SgiTable (nt, x, n, explifyCon c), loc) | L.SgiClassAbs (x, n) => SOME (L'.SgiConAbs (x, n, (L'.KArrow ((L'.KType, loc), (L'.KType, loc)), loc)), loc) | L.SgiClass (x, n, c) => SOME (L'.SgiCon (x, n, (L'.KArrow ((L'.KType, loc), (L'.KType, loc)), loc), explifyCon c), loc) @@ -161,7 +161,7 @@ fun explifyDecl (d, loc : EM.span) = | L.DFfiStr (x, n, sgn) => SOME (L'.DFfiStr (x, n, explifySgn sgn), loc) | L.DConstraint (c1, c2) => NONE | L.DExport (en, sgn, str) => SOME (L'.DExport (en, explifySgn sgn, explifyStr str), loc) - | L.DTable _ => raise Fail "Explify DTable" + | L.DTable (nt, x, n, c) => SOME (L'.DTable (nt, x, n, explifyCon c), loc) | L.DClass (x, n, c) => SOME (L'.DCon (x, n, (L'.KArrow ((L'.KType, loc), (L'.KType, loc)), loc), explifyCon c), loc) |