rfc5051

Simple unicode collation as per RFC5051.

Version on this page:0.1.0.4
LTS Haskell 22.39:0.2
Stackage Nightly 2024-10-31:0.2
Latest on Hackage:0.2

See all snapshots rfc5051 appears in

BSD-3-Clause licensed by John MacFarlane
Maintained by [email protected]
This version can be pinned in stack with:rfc5051-0.1.0.4@sha256:1b62ad9a5f4c686271749dbb66a830ba5d2f83a9ca2bf18df6e2861ca78b9662,1911

Module documentation for 0.1.0.4

Used by 1 package in lts-15.3(full list with versions):

This library implements i;unicode-casemap, the simple, non locale-sensitive unicode collation algorithm described in RFC 5051 (http://www.rfc-editor.org/rfc/rfc5051.txt). Proper unicode collation can be done using text-icu, but that is a big dependency that depends on a large C library, and rfc5051 might be better for some purposes.

Here is a list of strings sorted by the Prelude's sort function: Abe Oeb abe abé oeb Ábe Äbe Ôeb ábe äbe ôeb.

Here is the same list sorted by sortBy compareUnicode:

Abe abe abé Ábe ábe Äbe äbe Oeb oeb Ôeb ôeb