rfc5051: Simple unicode collation as per RFC5051.
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
.
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
mkunicodedata | Build MkUnicodeData (code generator for DataRFC5051UnicodeData) | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- rfc5051-0.1.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.2 |
---|---|
Dependencies | base (>=4.5 && <4.6), bytestring (>=0.9 && <1.0), containers (>=0.4 && <0.5) [details] |
License | BSD-3-Clause |
Copyright | (C) 2013 John MacFarlane |
Author | John MacFarlane |
Maintainer | jgm@berkeley.edu |
Category | Text |
Source repo | head: git clone git://github.com/jgm/rfc5051.git |
Uploaded | by JohnMacFarlane at 2013-09-17T22:17:39Z |
Distributions | Arch:0.2, Fedora:0.2, FreeBSD:0.1.0.3, LTSHaskell:0.2, NixOS:0.2, Stackage:0.2 |
Reverse Dependencies | 5 direct, 168 indirect [details] |
Executables | MkUnicodeData |
Downloads | 36546 total (6 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2016-12-20 [all 6 reports] |