summaryrefslogtreecommitdiff
path: root/src/explify.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-01 10:55:38 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-01 10:55:38 -0400
commit43116f69ce9330eb09d42a25d4afc746e7c3f3ef (patch)
treee57ed0ff271cf35d5dbf88ecb90ce150a877e454 /src/explify.sml
parentcc2b6499cd2ea61f8882419cc5915c3428d5f5b7 (diff)
Initial disjointness prover
Diffstat (limited to 'src/explify.sml')
-rw-r--r--src/explify.sml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/explify.sml b/src/explify.sml
index 0f416067..af655eb4 100644
--- a/src/explify.sml
+++ b/src/explify.sml
@@ -38,6 +38,8 @@ fun explifyKind (k, loc) =
| L.KName => (L'.KName, loc)
| L.KRecord k => (L'.KRecord (explifyKind k), loc)
+ | L.KUnit => raise Fail "Explify KUnit"
+
| L.KError => raise Fail ("explifyKind: KError at " ^ EM.spanToString loc)
| L.KUnif (_, _, ref (SOME k)) => explifyKind k
| L.KUnif _ => raise Fail ("explifyKind: KUnif at " ^ EM.spanToString loc)
@@ -61,6 +63,8 @@ fun explifyCon (c, loc) =
| L.CConcat (c1, c2) => (L'.CConcat (explifyCon c1, explifyCon c2), loc)
| L.CFold (dom, ran) => (L'.CFold (explifyKind dom, explifyKind ran), loc)
+ | L.CUnit => raise Fail "Explify CUnit"
+
| L.CError => raise Fail ("explifyCon: CError at " ^ EM.spanToString loc)
| L.CUnif (_, _, _, ref (SOME c)) => explifyCon c
| L.CUnif _ => raise Fail ("explifyCon: CUnif at " ^ EM.spanToString loc)