Mercurial > urweb
diff src/elab_util.sml @ 42:b3fbbc6cb1e5
Elaborating 'where'
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 19 Jun 2008 16:35:40 -0400 |
parents | 1405d8c26790 |
children | abb2b32c19fb |
line wrap: on
line diff
--- a/src/elab_util.sml Thu Jun 19 16:04:28 2008 -0400 +++ b/src/elab_util.sml Thu Jun 19 16:35:40 2008 -0400 @@ -370,6 +370,12 @@ S.map2 (sg (bind (ctx, Str (m, s1'))) s2, fn s2' => (SgnFun (m, n, s1', s2'), loc))) + | SgnWhere (sgn, x, c) => + S.bind2 (sg ctx sgn, + fn sgn' => + S.map2 (con ctx c, + fn c' => + (SgnWhere (sgn', x, c'), loc))) | SgnError => S.return2 sAll in sg