doclayout v0.3 Release Notes

Release Date: 2020-01-13 // over 3 years ago
    • Add foldlChar to signature of HasChars [API change].
    • Use foldlChar in realLength. This avoids a stack overflow we were getting with long strings in the previous version (with foldrChar). See jgm/pandoc#6031.
    • Replace isBlank with isBreakable and improved startsWithBlank. Previously isBlank was used in the layout algorithm where what we really wanted was isBreakable.
    • Avoid unnecessary calculation in updateColumns.
    • Replace a right fold with a strict left fold.
    • Add strictness annotations in realLength and updateColumn.

Previous changes from v0.2

    • Add instances for Doc: Data, Typeable, Ord, Read, Generic.
    • Add literal (like text, but polymorphic).
    • Change some IsString constraints to HasChars.
    • Add some default definitions for methods in HasChars.
    • Change offset and minOffset to be more efficient (in simple cases they no longer render and count line lengths).
    • Add updateColumn.
    • Fix problem with lblock/cblock/rblock when chop is invoked. This caused very strange behavior in which text got reversed in certain circumstances.