diff options
Diffstat (limited to 'src/flat_util.sml')
-rw-r--r-- | src/flat_util.sml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/flat_util.sml b/src/flat_util.sml index 0ed2a33a..7e52381d 100644 --- a/src/flat_util.sml +++ b/src/flat_util.sml @@ -209,6 +209,13 @@ fun mapfoldB {typ = fc, exp = fe, bind} = S.map2 (mfe ctx e, fn e' => (EWrite e', loc)) + + | ESeq (e1, e2) => + S.bind2 (mfe ctx e1, + fn e1' => + S.map2 (mfe ctx e2, + fn e2' => + (ESeq (e1', e2'), loc))) in mfe end |