diff options
| author | Hugo Herbelin | 2018-11-13 12:45:00 +0100 |
|---|---|---|
| committer | Gaƫtan Gilbert | 2018-11-16 15:09:52 +0100 |
| commit | 744a07e53fb99652b2b30520cfe3dfe701bbde18 (patch) | |
| tree | bf47679c65c0abcee4ba9ac81639773d1f303492 /kernel/univ.ml | |
| parent | 14c5b4bb8a9c5f62081594d2beaca274eaa0b8f3 (diff) | |
We improve a little bit in printing universe constraints signature mismatch.
Use of boxes to ensure locality of formatting + use of a
prlist_with_sep so that there are breaking points only inbetween the
elements and not at the end of the list.
Diffstat (limited to 'kernel/univ.ml')
| -rw-r--r-- | kernel/univ.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/univ.ml b/kernel/univ.ml index 0edf750997..2b3b4f9486 100644 --- a/kernel/univ.ml +++ b/kernel/univ.ml @@ -570,9 +570,9 @@ struct include S let pr prl c = - fold (fun (u1,op,u2) pp_std -> - pp_std ++ prl u1 ++ pr_constraint_type op ++ - prl u2 ++ fnl () ) c (str "") + v 0 (prlist_with_sep spc (fun (u1,op,u2) -> + hov 0 (prl u1 ++ pr_constraint_type op ++ prl u2)) + (elements c)) end |
