Up to [cvs.NetBSD.org] / pkgsrc / textproc / hs-doclayout
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
textproc/hs-doclayout: update to doclayout-0.5
## 0.5
* Extract existing HasChars definition into a module
Text.DocLayout.HasChars (Evan Silberman).
* Add a `build` method to the signature of HasChars [API change]
(Evan Silberman). This has a default definition, and is only needed with
the ANSI renderer, so existing users should not need to add anything to
their HasChars instances.
* Introduce support for ANSI-styled output (Evan Silberman) [API change].
`renderPlain` and `renderANSI` are now exported; the old `render`
is a synonym of `renderPlain`. In addition, various functions are
exported to add ANSI formatting (including bold, italics,
underline, strikeout, links, and colors) to a Doc. The Attributed
type is also now exported.
* Change type of Block constructor, replacing `[a]` with `[Attributed a]`,
which carries a Font along with an inner string type [API change]
(Evan Silberman).
* Introduce FlatDocs and use them for rendering (Evan Silberman).
This is an internal concept, not part of the public API.
FlatDoc is an "intermediate representation" for the Doc "interpreter".
The general design is that any Doc can be turned into a list of FlatDocs
that carry equivalent information. The main point of doing this
is to replace the nested Styled and Linked Docs, which form a more
complicated tree structure than previously existed in DocLayout.
* Deprecate `unfoldD`.
textproc/hs-doclayout: Fix build with GHC 9.8 This breaks build with the currently default GHC 9.6. Please bear with me until I switch the default compiler.
textproc/hs-doclayout: Update to 0.4.0.1
0.4.0.1
Add clause for Empty to renderList (#22).
Remove upper bound for criterion
textproc/hs-doclayout: Update to 0.4 0.4 * Expose unfoldD [API change]. * Remove realLengthNoShortcut, isEmojiModifier, and isEmojiJoiner [API change] (Stephen Morgan). * Add new exported functions realLengthNarrowContext, realLengthWideContext, realLengthNarrowContextNoShortcut, realLengthWideContextNoShortcut, isSkinToneModifier, isZWJ [API change] (Stephen Morgan). * Compute realLength strictly. * Make getOffset stricter. * Drop support for ghc <= 8.4, add test for ghc 9.2. * Don't collapse the CarriageReturn + Newline combination (#20). We want to ensure that a literal starting with a Newline doesn't lose the newline if it occurs after a CarriageReturn. This affects code blocks in pandoc that begin with newlines. * Improve performance of NoShortcut code (Stephen Morgan). * Simplify emoji processing (Stephen Morgan). * Add benchmarking for code with no shortcuts (Stephen Morgan). * Add unicodeWidth.inc to cabal file. * Fix offset, minOffset, updateColumn so they don't re-render. * Get unicode block widths directly from the Unicode specification, rather than writing it out ourselves (Stephen Morgan). * Resolve the width of ambiguous characters based on their context (Stephen Morgan). * Spacing marks should have nonzero width, even though they are combining characters (Stephen Morgan). * Add shortcuts for extended Latin, Arabic, Cyrillic, Greek, Devangari, Bengali, Korean, Telugu, and Tamil (Stephen Morgan). * Fix location of extra-source-files in cabal. * update.hs: require text package * Handle emoji variation modifiers specially, so the keypad emoji can be ignored (Stephen Morgan). This results in a 16% speedup of realLength on ascii text. * Add benchmarks for all scripts used by more than 50 million people, plus a couple more. (#9, Stephen Morgan).
Update to doclayout-0.3.0.2 0.3.0.2 * NOINLINE literal instead of fromString (#2, sjakobi). This produces a further reduction in allocations and pandoc compile time. 0.3.0.1 * NOINLINE fromString (#1). @sjakobi reports that this change reduced total allocations for building pandoc-2.12 with GHC 8.10.4 by 8.5% and reduced peak allocations are reduced from 3854MB to 3389MB.
hs-*: add PLIST files These PLIST files have been autogenerated by mk/haskell.mk using HS_UPDATE_PLIST=yes during a bulk build. They will help to track changes to the packages. The Haskell packages didn't have PLIST files because their paths contained package hashes. These hashes are now determined by mk/haskell.mk, which makes it easy to generate easy to read PLIST files.