HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleunicode-collation-0.1.3.7Haskell2010

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.

Synopsis
valuetoNFD :: [Int] -> [Int]

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