diff options
-rw-r--r-- | typing/printtyp.ml | 6 | ||||
-rw-r--r-- | typing/printtyp.mli | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/typing/printtyp.ml b/typing/printtyp.ml index c2bf66cc2..b9b1026db 100644 --- a/typing/printtyp.ml +++ b/typing/printtyp.ml @@ -436,6 +436,12 @@ and type_sch ppf ty = typexp true 0 ppf ty and type_scheme ppf ty = reset_and_mark_loops ty; typexp true 0 ppf ty +(* Maxence *) +let type_scheme_max ?(b_reset_names=true) ppf ty = + if b_reset_names then reset_names () ; + typexp true 0 ppf ty +(* Fin Maxence *) + let tree_of_type_scheme ty = reset_and_mark_loops ty; tree_of_typexp true ty (* Print modules types and signatures *) diff --git a/typing/printtyp.mli b/typing/printtyp.mli index 53b26b138..ab6e9e1c9 100644 --- a/typing/printtyp.mli +++ b/typing/printtyp.mli @@ -29,6 +29,10 @@ val reset_and_mark_loops_list: type_expr list -> unit val type_expr: formatter -> type_expr -> unit val tree_of_type_scheme: type_expr -> out_type val type_scheme: formatter -> type_expr -> unit +(* Maxence *) +val type_scheme_max: ?b_reset_names: bool -> + formatter -> type_expr -> unit +(* Fin Maxence *) val tree_of_value_description: Ident.t -> value_description -> out_sig_item val value_description: Ident.t -> formatter -> value_description -> unit val tree_of_type_declaration: Ident.t -> type_declaration -> out_sig_item |