rfc5051 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+6/−3 lines, 2 files
Files
- Data/RFC5051.hs +1/−1
- rfc5051.cabal +5/−2
Data/RFC5051.hs view
@@ -4,7 +4,7 @@ import qualified Data.Map as M import Data.Char (ord, toTitle) --- | Compare two strings using "i;unicode-casemap",+-- | Compare two strings using @i;unicode-casemap@, -- the simple unicode collation algorithm described in RFC 5051. compareUnicode :: String -> String -> Ordering compareUnicode x y = case compare x' y' of
rfc5051.cabal view
@@ -1,8 +1,8 @@ name: rfc5051-version: 0.1.0.0+version: 0.1.0.1 synopsis: Simple unicode collation as per RFC5051. description:- This library implements "i;unicode-casemap",+ 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@@ -10,8 +10,11 @@ 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@. license: BSD3