diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-03 10:48:36 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-03 10:48:36 -0400 |
commit | c0b7963e91681045bb4c82a2356776fae54f54c5 (patch) | |
tree | 5f098f60e48ade5cd1bfcb3a69e9b4ef9cb605ff /src/tag.sml | |
parent | 5e0563d3b00303d5053827e46811c93077455208 (diff) |
Cases through monoize
Diffstat (limited to 'src/tag.sml')
-rw-r--r-- | src/tag.sml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/tag.sml b/src/tag.sml index 74f195a9..a8b59c5a 100644 --- a/src/tag.sml +++ b/src/tag.sml @@ -150,13 +150,7 @@ fun decl (d, s) = (d, s) fun tag file = let - val count = foldl (fn ((d, _), count) => - case d of - DCon (_, n, _, _) => Int.max (n, count) - | DDatatype (_, n, _) => Int.max (n, count) - | DVal (_, n, _, _, _) => Int.max (n, count) - | DValRec vis => foldl (fn ((_, n, _, _, _), count) => Int.max (n, count)) count vis - | DExport _ => count) 0 file + val count = U.File.maxName file fun doDecl (d as (d', loc), (env, count, tags, byTag)) = case d' of |