Skip to content

Text.PrettyPrint.HughesPJ: Bug fixes, performance improvement

In summary, I propose to

  • fix a bug in fillNB and one in fillNB/sepNB
  • correct documentation on laws and invariants.
  • add more efficient implementations of vcat,hsep,hcat

More specifically:

(1) Bugfix fillNB: Additional case for fillNB Empty (Empty : ys)

(2) Bugfix f: do not allow overlapping ($$) in vertical composition

(3) Lazy implementations of vcat,hcat and hsep

(4) Law <t2> isn't always true

(5) Invariant 5 should be made stronger

(6) Change the comment about negative indentation

Please see the attached patch

best regards, benedikt

Trac metadata
Trac field Value
Version 6.8.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/pretty
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information