summaryrefslogtreecommitdiff
path: root/src/cjr_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-12-10 13:32:09 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-12-10 13:32:09 -0500
commit7cfa621d957e18909cddab064955dc2ab6ad54be (patch)
tree0f8fb3c5e3f1278843704633e53f27ec20e49b06 /src/cjr_print.sml
parentb084552dfb0f1878ef6ad7319dfe728b887d2bd0 (diff)
Basis.url and redirects
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r--src/cjr_print.sml14
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), _) =>