fix(pp): improve printing of hashtables

close #243
This commit is contained in:
Simon Cruanes 2019-12-14 14:25:38 -06:00
parent bcb90de435
commit faeae964fc

View file

@ -129,13 +129,12 @@ module Poly = struct
let first = ref true in
Hashtbl.iter
(fun k v ->
if !first then first := false else Format.pp_print_string fmt ", ";
if !first then first := false else Format.fprintf fmt ",@ ";
pp_k fmt k;
Format.pp_print_string fmt " -> ";
pp_v fmt v;
Format.pp_print_cut fmt ()
) m;
Format.fprintf fmt "}@]"
Format.fprintf fmt "@,}@]"
end
include Poly