skylighting 0.15.0.1 → 0.15.1
raw patch · API changes only · 2 files changed · show whitespace changes · browse skylighting-0.15.1
+21/−3 lines, 2 filesdep ~bytestringdep ~skylighting-corePVP ok
Dependency ranges changed: bytestring, skylighting-core
API changes (from Hackage documentation)
No changes to the public API.
version bump matches the API change (PVP)
Files
- changelog.md +17/−0
- skylighting.cabal +4/−3
changelog.md view
@@ -1,5 +1,22 @@ # Revision history for skylighting and skylighting-core +## 0.15.1++ * Embed syntax definitions as primitive string literals (#216).+ The generated syntax modules contained `decode "..."` with+ OverloadedStrings, so the serialized syntax was an ordinary string+ literal. Because it contains NUL and non-ASCII bytes, ghc stores it in+ modified UTF-8, and at runtime it was decoded into a String and+ repacked into a lazy ByteString before being decoded with binary.+ skylighting-extract now emits a primitive string literal ("..."#),+ which ghc stores as raw bytes, and wraps it with unsafePackLenLiteral,+ which does not copy. This roughly halves the cost of loading a+ syntax definition, and makes the library slightly smaller.++ * skylighting now depends directly on bytestring.++ * Remove obsolete derivations of Typeable.+ ## 0.15.0.1 * Update syntax definitions for csv, isocpp, json, perl, raku,
skylighting.cabal view
@@ -1,5 +1,5 @@ name: skylighting-version: 0.15.0.1+version: 0.15.1 synopsis: syntax highlighting library description: Skylighting is a syntax highlighting library with support for over one hundred languages. It derives@@ -245,14 +245,15 @@ Skylighting.Syntax.Zsh other-extensions: CPP build-depends: base >= 4.18 && < 5,- skylighting-core == 0.15.0.1,+ skylighting-core == 0.15.1, skylighting-format-ansi >= 0.1 && < 0.2, skylighting-format-context >= 0.1 && < 0.2, skylighting-format-latex >= 0.1 && < 0.2, skylighting-format-blaze-html >= 0.1 && < 0.2, skylighting-format-typst >= 0.1 && < 0.2, containers,- binary+ binary,+ bytestring >= 0.11.4 hs-source-dirs: src ghc-prof-options: -fprof-auto-exported default-language: Haskell2010