Haskell type for case-insensitive comparison of String, Text or ByteString
open sourceBSD-3-Clausefree
case-insensitive is a Haskell library whose module Data.CaseInsensitive provides the CI type constructor. It wraps a string-like type such as String, ByteString or Text, and comparisons between values of the resulting type ignore case.
Problems it solves
- compare strings in Haskell without caring about upper or lower case
- make a Text or ByteString value compare case-insensitively in Haskell
- use case-insensitive keys in a Haskell map
Features
- CI type constructor for case-insensitive values
- Works with String, ByteString, Text and other string-like types
- Equality and ordering that ignore case
Alternatives
The same job
These do what case-insensitive does.
- text Efficient packed Unicode text for Haskell
- text-short Memory-efficient ShortText type for many short Unicode strings in Haskell
- string-interpolate Unicode-aware string interpolation for Haskell that handles all textual types
