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
(liketext
, but polymorphic). - Change some
IsString
constraints toHasChars
. - Add some default definitions for methods in
HasChars
. - Change
offset
andminOffset
to be more efficient (in simple cases they no longer render and count line lengths). - Add
updateColumn
. - Fix problem with
lblock
/cblock
/rblock
whenchop
is invoked. This caused very strange behavior in which text got reversed in certain circumstances.
- Add instances for