|Maintainer||Bas van Dijk <firstname.lastname@example.org>|
This module is intended to be imported qualified. May I suggest:
import Data.CaseInsensitive ( CI ) import qualified Data.CaseInsensitive as CI
Note that the FoldCase instance for ByteStrings is only guaranteed to be correct for ISO-8859-1 encoded strings!
CI s has an instance for
IsString which together with the
OverloadedStrings language extension allows you to write case insensitive
string literals as in:
Transform the original string-like value but keep it case insensitive.
Class of string-like types that support folding cases.
Note: In some languages, case conversion is a locale- and context-dependent
foldCase method is not intended to be locale sensitive.
Programs that require locale sensitivity should use appropriate versions of
the case mapping functions from the
|FoldCase a => FoldCase [a]|
|FoldCase (CI s)|