diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-08 10:59:06 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-08 10:59:06 -0400 |
commit | e2a9136ed7123cb8e5cac4a20cbce5467643ecd6 (patch) | |
tree | cf96ee150816d9120f27370837c836e5641bbdd9 /src/shake.sml | |
parent | baf22271ef6e646c97ddfa1e4193a8857816c67d (diff) |
Parametrized datatypes through corify
Diffstat (limited to 'src/shake.sml')
-rw-r--r-- | src/shake.sml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shake.sml b/src/shake.sml index c8105b07..5b3a1bce 100644 --- a/src/shake.sml +++ b/src/shake.sml @@ -48,7 +48,7 @@ fun shake file = | (_, page_es) => page_es) [] file val (cdef, edef) = foldl (fn ((DCon (_, n, _, c), _), (cdef, edef)) => (IM.insert (cdef, n, [c]), edef) - | ((DDatatype (_, n, xncs), _), (cdef, edef)) => + | ((DDatatype (_, n, _, xncs), _), (cdef, edef)) => (IM.insert (cdef, n, List.mapPartial #3 xncs), edef) | ((DVal (_, n, t, e, _), _), (cdef, edef)) => (cdef, IM.insert (edef, n, (t, e))) | ((DValRec vis, _), (cdef, edef)) => @@ -102,7 +102,7 @@ fun shake file = | SOME (t, e) => shakeExp (shakeCon s t) e) s page_es in List.filter (fn (DCon (_, n, _, _), _) => IS.member (#con s, n) - | (DDatatype (_, n, _), _) => IS.member (#con s, n) + | (DDatatype (_, n, _, _), _) => IS.member (#con s, n) | (DVal (_, n, _, _, _), _) => IS.member (#exp s, n) | (DValRec vis, _) => List.exists (fn (_, n, _, _, _) => IS.member (#exp s, n)) vis | (DExport _, _) => true) file |