HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleunicode-collation-0.1.3.6Haskell2010

Text.Collate.Normalize

We define our own normalization function instead of depending on unicode-transforms, because we need a lazy (streaming) normalization function for maximum efficiency. No point normalizing two whole Texts if we can see from the first few characters how they should be ordered. See https://unicode.org/reports/tr15/ for a description of the algorithm implemented here.

  • 1 value
valuetoNFD :: [Int] -> [Int]
#

Lazily normalize a list of code points to its canonical decomposition (NFD).