summaryrefslogtreecommitdiff
path: root/src/corify.sml
diff options
context:
space:
mode:
Diffstat (limited to 'src/corify.sml')
-rw-r--r--src/corify.sml7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corify.sml b/src/corify.sml
index 9c44140d..55d9a95a 100644
--- a/src/corify.sml
+++ b/src/corify.sml
@@ -376,8 +376,13 @@ fun corifyDecl ((d, loc : EM.span), st) =
| L.DVal (x, n, t, e) =>
let
val (st, n) = St.bindVal st x n
+ val s =
+ if String.isPrefix "wrap_" x then
+ String.extract (x, 5, NONE)
+ else
+ x
in
- ([(L'.DVal (x, n, corifyCon st t, corifyExp st e, x), loc)], st)
+ ([(L'.DVal (x, n, corifyCon st t, corifyExp st e, s), loc)], st)
end
| L.DSgn _ => ([], st)