Simple unicode collation as per RFC5051.

Latest on Hackage:

See all snapshots rfc5051 appears in

BSD-3-Clause licensed by John MacFarlane
Maintained by [email protected]

Module documentation for

This version can be pinned in stack with:[email protected]:267afa414466504e88839bbe39738278f459a41b9260a3f667a37889c6f2ecf8,1913

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
Used by 1 package in lts-2.22(full list with versions):