An efficient packed, immutable Unicode text type for Haskell, with a powerful loop fusion optimization framework.
Haskell C Other
Failed to load latest commit information.
Data Merge pull request #145 from hvr/pr/integer-simple Mar 17, 2016
benchmarks Add benchmark for uncons Dec 22, 2015
cbits Remove redundant 'const' qualifiers. Apr 21, 2014
include Drop a magic number Sep 22, 2013
scripts Update case mapping scripts to match current needs May 12, 2015
tests Implement takeWhileEnd Oct 8, 2015
.gitignore Add 'cabal.sandbox.config' to '.gitignore'. Dec 21, 2015
.hgignore Bring Arsec up to date Nov 30, 2013
.hgtags Added tag for changeset ce1c5ac65eb9 Mar 17, 2016
LICENSE Add cabal file and LICENSE Jan 18, 2009
README.markdown Point the master repo and bugtracker at github. Aug 21, 2011
Setup.lhs Add Setup.lhs to keep Cabal happy Jan 18, 2009 Bump version to Mar 17, 2016
text.cabal Bump version to Mar 17, 2016


Text: Fast, packed Unicode strings, using stream fusion

This package provides the Data.Text library, a library for the space- and time-efficient manipulation of Unicode text in Haskell.

Normalization, conversion, and collation, oh my!

This library intentionally provides a simple API based on the Haskell prelude's list manipulation functions. For more complicated real-world tasks, such as Unicode normalization, conversion to and from a larger variety of encodings, and collation, use the text-icu package.

That library uses the well-respected and liberally licensed ICU library to provide these facilities.

Get involved!

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://

There's also a Mercurial mirror:

  • hg clone

(You can create and contribute changes using either Mercurial or git.)


The base code for this library was originally written by Tom Harper, based on the stream fusion framework developed by Roman Leshchinskiy, Duncan Coutts, and Don Stewart.

The core library was fleshed out, debugged, and tested by Bryan O'Sullivan, and he is the current maintainer.