aboutsummaryrefslogtreecommitdiff
path: root/printing
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2017-01-17 15:06:26 +0100
committerEmilio Jesus Gallego Arias2017-04-24 23:58:23 +0200
commitbf13037e9ca39da28fb648e5488ce56ef8a1f1e2 (patch)
treee981dabe208b339db88188b7a5e89c53d77745a1 /printing
parenta9d151a31937724543d5269e72b0262c8764c46e (diff)
[location] Use located in misctypes.
Diffstat (limited to 'printing')
-rw-r--r--printing/pputils.ml2
-rw-r--r--printing/prettyp.ml4
2 files changed, 3 insertions, 3 deletions
diff --git a/printing/pputils.ml b/printing/pputils.ml
index 50630fb9b5..e90b54685e 100644
--- a/printing/pputils.ml
+++ b/printing/pputils.ml
@@ -105,7 +105,7 @@ let pr_red_expr (pr_constr,pr_lconstr,pr_ref,pr_pattern) keyword = function
let pr_or_by_notation f = function
| AN v -> f v
- | ByNotation (_,s,sc) -> qs s ++ pr_opt (fun sc -> str "%" ++ str sc) sc
+ | ByNotation (_,(s,sc)) -> qs s ++ pr_opt (fun sc -> str "%" ++ str sc) sc
let hov_if_not_empty n p = if Pp.ismt p then p else hov n p
diff --git a/printing/prettyp.ml b/printing/prettyp.ml
index aa422e36af..96b0f49d4b 100644
--- a/printing/prettyp.ml
+++ b/printing/prettyp.ml
@@ -750,7 +750,7 @@ let print_any_name = function
~hdr:"print_name" (pr_qualid qid ++ spc () ++ str "not a defined object.")
let print_name = function
- | ByNotation (loc,ntn,sc) ->
+ | ByNotation (loc,(ntn,sc)) ->
print_any_name
(Term (Notation.interp_notation_as_global_reference loc (fun _ -> true)
ntn sc))
@@ -798,7 +798,7 @@ let print_about_any loc k =
hov 0 (pr_located_qualid k)
let print_about = function
- | ByNotation (loc,ntn,sc) ->
+ | ByNotation (loc,(ntn,sc)) ->
print_about_any loc
(Term (Notation.interp_notation_as_global_reference loc (fun _ -> true)
ntn sc))