Skip to content

Initial ShortText code and conversion of package db code

Wander Hillen requested to merge WJWH/ghc:shorttext into master

Like !4103 (closed), but with a better datatype. I went for a newtype over ShortByteString without any character or byte count caching, reusing the GHC.Utils.Encoding module from FastString to do the UTF-8 encoding. To make the importing work, I moved the GHC.Utils.Encoding to ghc-boot, as https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries mentions that shared code should live there and the package db code is also used by ghc-pkg.

Tracking: #18722

Edited by Wander Hillen

Merge request reports