File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- let printExpr typ =
1+ let printExpr ?( lineWidth = 60 ) typ =
22 Printtyp. reset_names () ;
3- Res_doc. toString ~width: 60
3+ Res_doc. toString ~width: lineWidth
44 (Res_outcome_printer. printOutTypeDoc (Printtyp. tree_of_typexp false typ))
55
66let printDecl ~recStatus name decl =
Original file line number Diff line number Diff line change @@ -49,12 +49,12 @@ let declToString ?(recStatus = Types.Trec_not) name t =
4949let cacheTypeToString = ref false
5050let typeTbl = Hashtbl. create 1
5151
52- let typeToString (t : Types.type_expr ) =
52+ let typeToString ?( lineWidth = 60 ) (t : Types.type_expr ) =
5353 match
5454 if ! cacheTypeToString then Hashtbl. find_opt typeTbl (t.id, t) else None
5555 with
5656 | None ->
57- let s = PrintType. printExpr t in
57+ let s = PrintType. printExpr ~line Width t in
5858 Hashtbl. replace typeTbl (t.id, t) s;
5959 s
6060 | Some s -> s
You can’t perform that action at this time.
0 commit comments