About

Metadata

  • Last updated , by lyxia
  • License BSD-2-Clause
  • Categories Text Processing
  • Maintained by: Haskell Text Team <andrew.lelechenko@gmail.com>, Core Libraries Committee

  • Lottery factor: 3

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.1
  3. 9.8.4
  4. 9.6.7
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5
  11. 8.4.4

Package Flags

Use the -f option with cabal commands to enable flags

    developer (off by default)

    operate in developer mode

    simdutf (on by default)

    use simdutf library, causes Data.Text.Internal.Validate.Simd to be exposed

    pure-haskell (off by default)

    Don't use text's standard C routines NB: This feature is not fully implemented. Several C routines are still in use. When this flag is true, text will use pure Haskell variants of the routines. This is not recommended except for use with GHC's JavaScript backend. This flag also disables simdutf.

    extendedbenchmarks (off by default)

    Runs extra benchmarks which can be very slow.

Readme

text Hackage Stackage LTS Stackage Nightly

Haskell library for space- and time-efficient operations over Unicode text.

Get involved!

Please report bugs via the github issue tracker.

The main repo:

git clone https://github.com/haskell/text

To run benchmarks please clone and unpack test files:

cd text
git clone https://github.com/haskell/text-test-data benchmarks/text-test-data
make -Cbenchmarks/text-test-data

Authors

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. Transition from UTF-16 to UTF-8 is by Andrew Lelechenko.