diff options
Diffstat (limited to 'src/elab_util.sml')
-rw-r--r-- | src/elab_util.sml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/elab_util.sml b/src/elab_util.sml index 45446a4e..e9b7ddd9 100644 --- a/src/elab_util.sml +++ b/src/elab_util.sml @@ -56,6 +56,8 @@ fun mapfold f = fn k' => (KRecord k', loc)) + | KUnit => S.return2 kAll + | KError => S.return2 kAll | KUnif (_, _, ref (SOME k)) => mfk' k @@ -150,6 +152,8 @@ fun mapfoldB {kind = fk, con = fc, bind} = fn k2' => (CFold (k1', k2'), loc))) + | CUnit => S.return2 cAll + | CError => S.return2 cAll | CUnif (_, _, _, ref (SOME c)) => mfc' ctx c | CUnif _ => S.return2 cAll |