text-utf8: An efficient packed UTF-8 backed Unicode text type.

[ bsd2, data, deprecated, library, text ] [ Propose Tags ]
Deprecated in favor of text

An efficient packed, immutable UTF-8 backed 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 (see Data.Text). It also provides a range of functions for converting Text values to and from ByteStrings, using several standard encodings (see Data.Text.Encoding).

Efficient locale-sensitive support for text IO is also supported (see Data.Text.IO).

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

import qualified Data.Text as T

Relationship to the standard text package

This is a fork of the text package ported which uses UTF-8 instead of UTF-16 as its internal representation.

This release is intended to be API compatible with the text- release.

Another package providing an UTF-8 backed Text type with a diffferent cost-model is the text-short package.


Manual Flags


operate in developer mode

Automatic Flags

Use the simple integer library instead of integer-gmp


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


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS]
Change log changelog.md
Dependencies array (>= && <0.6), base (>= && <4.13), binary (>= && <0.9), bytestring (>=0.10.4 && <0.11), deepseq (>= && <1.5), ghc-prim (>= && <0.6), integer-gmp (>=0.5.1 && <1.1), integer-simple (>=0.1 && <0.5) [details]
License BSD-2-Clause
Copyright 2009-2011 Bryan O'Sullivan, 2008-2009 Tom Harper
Author Bryan O'Sullivan <bos@serpentine.com>
Maintainer Herbert Valerio Riedel <hvr@gnu.org>
Revised Revision 1 made by HerbertValerioRiedel at 2018-08-12T12:10:12Z
Category Data, Text
Home page https://github.com/text-utf8
Bug tracker https://github.com/text-utf8/text-utf8/issues
Source repo head: git clone https://github.com/text-utf8/text-utf8
Uploaded by HerbertValerioRiedel at 2018-05-14T00:08:47Z
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 947 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-05-14 [all 1 reports]