diff src/elab_util.sml @ 41:1405d8c26790

Beginning of functor elaboration
author Adam Chlipala <adamc@hcoop.net>
date Thu, 19 Jun 2008 16:04:28 -0400
parents 44b5405e74c7
children b3fbbc6cb1e5
line wrap: on
line diff
--- a/src/elab_util.sml	Thu Jun 19 15:15:00 2008 -0400
+++ b/src/elab_util.sml	Thu Jun 19 16:04:28 2008 -0400
@@ -364,6 +364,12 @@
                         (SgnConst sgis', loc))
                 
               | SgnVar _ => S.return2 sAll
+              | SgnFun (m, n, s1, s2) =>
+                S.bind2 (sg ctx s1,
+                         fn s1' =>
+                            S.map2 (sg (bind (ctx, Str (m, s1'))) s2,
+                                    fn s2' =>
+                                       (SgnFun (m, n, s1', s2'), loc)))
               | SgnError => S.return2 sAll
     in
         sg