aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/elab_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-06-03 13:04:37 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-06-03 13:04:37 -0400
commitb1d29df128dd1fa879e24f0eb3f5cdc1b74e16b7 (patch)
tree370066a96da7c7aff61371c96f82804cde02fa75 /src/elab_print.sml
parentccc3c126378aaa53765f8d69c267c6ffee666acf (diff)
Some serious bug-fix work to get HTML example to compile; this includes fixing a bug with 'val' patterns in Unnest and the need for more local reduction in Especialize
Diffstat (limited to 'src/elab_print.sml')
-rw-r--r--src/elab_print.sml11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/elab_print.sml b/src/elab_print.sml
index 86448659..42a0a107 100644
--- a/src/elab_print.sml
+++ b/src/elab_print.sml
@@ -252,12 +252,19 @@ fun p_pat' par env (p, _) =
p_pat' true env p])
| PRecord xps =>
box [string "{",
- p_list_sep (box [string ",", space]) (fn (x, p, _) =>
+ p_list_sep (box [string ",", space]) (fn (x, p, t) =>
box [string x,
space,
string "=",
space,
- p_pat env p]) xps,
+ p_pat env p,
+ if !debug then
+ box [space,
+ string ":",
+ space,
+ p_con env t]
+ else
+ box []]) xps,
string "}"]
and p_pat x = p_pat' false x