aboutsummaryrefslogtreecommitdiff
path: root/printing/ppconstr.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-11-07 18:58:18 +0100
committerPierre-Marie Pédrot2014-11-10 11:53:22 +0100
commit7f56dfb365e58f8dbb1db99faecec2a126bab0e5 (patch)
treed2fc47201cb937cfa50aad0c71f5ad8a4bef6c6a /printing/ppconstr.ml
parent791b6a26a23b71cc1cba364977cc825028c8ebc9 (diff)
Plug the dynamic tags in the Richpp mechanism.
Diffstat (limited to 'printing/ppconstr.ml')
-rw-r--r--printing/ppconstr.ml10
1 files changed, 4 insertions, 6 deletions
diff --git a/printing/ppconstr.ml b/printing/ppconstr.ml
index 9ee81b278e..1481ea191e 100644
--- a/printing/ppconstr.ml
+++ b/printing/ppconstr.ml
@@ -812,15 +812,13 @@ include Make (struct
let tag_constr_expr = do_not_tag
end)
-module Richpp (Indexer : sig
- val index : Ppannotation.t -> string
-end) = struct
+module Richpp = struct
include Make (struct
open Ppannotation
- let tag_keyword = Pp.tag (Indexer.index AKeyword)
- let tag_unparsing unp = Pp.tag (Indexer.index (AUnparsing unp))
- let tag_constr_expr e = Pp.tag (Indexer.index (AConstrExpr e))
+ let tag_keyword = Pp.tag (Pp.Tag.inj AKeyword tag)
+ let tag_unparsing unp = Pp.tag (Pp.Tag.inj (AUnparsing unp) tag)
+ let tag_constr_expr e = Pp.tag (Pp.Tag.inj (AConstrExpr e) tag)
end)
end