diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-12-10 13:32:09 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-12-10 13:32:09 -0500 |
commit | b04e123d0e1159d431aae00c3e8f1cc4a1b95684 (patch) | |
tree | 0f8fb3c5e3f1278843704633e53f27ec20e49b06 /src/cjr_print.sml | |
parent | 14163f6e6e160694eff3d409ca3cf0b8b76c4a3a (diff) |
Basis.url and redirects
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r-- | src/cjr_print.sml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cjr_print.sml b/src/cjr_print.sml index e459db62..a1d5ed2c 100644 --- a/src/cjr_print.sml +++ b/src/cjr_print.sml @@ -1451,6 +1451,20 @@ fun p_exp' par env (e, loc) = string "tmp;", newline, string "})"] + | ERedirect (e, t) => + box [string "({", + newline, + p_typ env t, + space, + string "tmp;", + newline, + string "uw_redirect(ctx, ", + p_exp env e, + string ");", + newline, + string "tmp;", + newline, + string "})"] | EApp ((EError (e, (TFun (_, ran), _)), loc), _) => p_exp env (EError (e, ran), loc) | EApp ((EReturnBlob {blob, mimeType, t = (TFun (_, ran), _)}, loc), _) => |