summaryrefslogtreecommitdiff
path: root/src/monoize.sml
diff options
context:
space:
mode:
authorGravatar Ziv Scully <ziv@mit.edu>2015-09-27 03:52:14 -0400
committerGravatar Ziv Scully <ziv@mit.edu>2015-09-27 03:52:14 -0400
commitf8d7c70d8f52003e14a66144a48bb4f06a1c185f (patch)
tree4a51a711e16aa962b6347942120fa77743670333 /src/monoize.sml
parent97115c5f804824c024a0c08c288889d29f743e64 (diff)
Pure caching sort of works.
Diffstat (limited to 'src/monoize.sml')
-rw-r--r--src/monoize.sml7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/monoize.sml b/src/monoize.sml
index 8f6b298d..4208f594 100644
--- a/src/monoize.sml
+++ b/src/monoize.sml
@@ -4484,13 +4484,14 @@ fun monoize env file =
(L'.DDatatype (dts @ !pvarDefs), loc) :: Fm.decls fm @ ds
| _ =>
ds' @ Fm.decls fm @ (L'.DDatatype (!pvarDefs), loc) :: ds)))
- (env, Fm.empty mname, []) file
+ (env, Fm.empty mname, []) file
+ val monoFile = (rev ds, [])
in
pvars := RM.empty;
pvarDefs := [];
pvarOldDefs := [];
- Fm.canonical := fm;
- (rev ds, [])
+ MonoFooify.canonicalFm := Fm.empty (MonoUtil.File.maxName monoFile);
+ monoFile
end
end