diff options
Diffstat (limited to 'src/elab_util.sml')
-rw-r--r-- | src/elab_util.sml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/elab_util.sml b/src/elab_util.sml index 02b95130..cc4fbe4a 100644 --- a/src/elab_util.sml +++ b/src/elab_util.sml @@ -317,6 +317,19 @@ fun mapfoldB {kind = fk, con = fc, exp = fe, bind} = S.map2 (mfc ctx rest, fn rest' => (EField (e', c', {field = field', rest = rest'}), loc))))) + | EWith (e1, c, e2, {field, rest}) => + S.bind2 (mfe ctx e1, + fn e1' => + S.bind2 (mfc ctx c, + fn c' => + S.bind2 (mfe ctx e2, + fn e2' => + S.bind2 (mfc ctx field, + fn field' => + S.map2 (mfc ctx rest, + fn rest' => + (EWith (e1', c', e2', {field = field', rest = rest'}), + loc)))))) | ECut (e, c, {field, rest}) => S.bind2 (mfe ctx e, fn e' => |