aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/elab_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-10-04 15:50:28 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-10-04 15:50:28 -0400
commit2eca16323e58b01a70ea734e2825765ebe239dc0 (patch)
tree01925fb11414b663a27842adee1f417c8df1c2a2 /src/elab_util.sml
parent4bf39f1d330d41b33ccdaac9c037dd8737f05975 (diff)
Merge CDisjoint and TDisjoint
Diffstat (limited to 'src/elab_util.sml')
-rw-r--r--src/elab_util.sml12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/elab_util.sml b/src/elab_util.sml
index cc4fbe4a..69ed3248 100644
--- a/src/elab_util.sml
+++ b/src/elab_util.sml
@@ -119,14 +119,14 @@ fun mapfoldB {kind = fk, con = fc, bind} =
S.map2 (mfc (bind (ctx, Rel (x, k))) c,
fn c' =>
(TCFun (e, x, k', c'), loc)))
- | TDisjoint (ai, c1, c2, c3) =>
+ | CDisjoint (ai, c1, c2, c3) =>
S.bind2 (mfc ctx c1,
fn c1' =>
S.bind2 (mfc ctx c2,
fn c2' =>
S.map2 (mfc ctx c3,
fn c3' =>
- (TDisjoint (ai, c1', c2', c3'), loc))))
+ (CDisjoint (ai, c1', c2', c3'), loc))))
| TRecord c =>
S.map2 (mfc ctx c,
fn c' =>
@@ -147,14 +147,6 @@ fun mapfoldB {kind = fk, con = fc, bind} =
S.map2 (mfc (bind (ctx, Rel (x, k))) c,
fn c' =>
(CAbs (x, k', c'), loc)))
- | CDisjoint (c1, c2, c3) =>
- S.bind2 (mfc ctx c1,
- fn c1' =>
- S.bind2 (mfc ctx c2,
- fn c2' =>
- S.map2 (mfc ctx c3,
- fn c3' =>
- (CDisjoint (c1', c2', c3'), loc))))
| CName _ => S.return2 cAll