The rfc5051 package

[ Tags: bsd3, library, text ] [ Propose Tags ]

This library implements i;unicode-casemap, the simple, non locale-sensitive unicode collation algorithm described in RFC 5051 ( 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


Dependencies base (>=4.2 && <5), bytestring (>=0.9 && <0.11), containers (>=0.4 && <0.6) [details]
License BSD3
Copyright (C) 2013 John MacFarlane
Author John MacFarlane
Category Text
Source repository head: git clone git://
Uploaded Wed Sep 18 17:05:35 UTC 2013 by JohnMacFarlane
Distributions Arch:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Tumbleweed:
Executables MkUnicodeData
Downloads 19263 total (352 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI





Build MkUnicodeData (code generator for DataRFC5051UnicodeData)


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees