The text package

[Tags: bsd3, library]

An efficient packed, immutable Unicode text type (both strict and lazy), with a powerful loop fusion optimization framework.

The Text type represents Unicode character strings, in a time and space-efficient manner. This package provides text processing capabilities that are optimized for performance critical use, both in terms of large data quantities and high speed.

The Text type provides character-encoding, type-safe case conversion via whole-string case conversion functions. It also provides a range of functions for converting Text values to and from ByteStrings, using several standard encodings.

Efficient locale-sensitive support for text IO is also supported.

These modules are intended to be imported qualified, to avoid name clashes with Prelude functions, e.g.

 import qualified Data.Text as T

To use an extended and very rich family of functions for working with Unicode text (including normalization, regular expressions, non-standard encodings, text breaking, and locales), see the text-icu package:


Versions0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Dependenciesbase (<5), bytestring (>=0.9 && <1.0), extensible-exceptions or
base (==4.*), bytestring (>=0.9 && <1.0), deepseq (>=, ghc-prim
Copyright2008-2009 Tom Harper, 2009-2010 Bryan O'Sullivan
AuthorBryan O'Sullivan <>
MaintainerBryan O'Sullivan <> Tom Harper <> Duncan Coutts <>
CategoryData, Text
Home page
Bug tracker
Source repositoryhead: hg clone
head: git clone
Upload dateFri May 20 06:53:42 UTC 2011
Uploaded byBryanOSullivan
DistributionsDebian:, Fedora:, FreeBSD:, NixOS:, Stackage:
Downloads267241 total (28114 in last 30 days)




developeroperate in developer modeDisabled

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


Maintainers' corner

For package maintainers and hackage trustees