talira

Efficient packed Unicode text for Haskell

open sourceBSD-2-Clausefree

text is the standard Haskell library for Unicode strings: its Text type, in strict and lazy forms, stores text packed in UTF-8 and is far faster and smaller than Haskell's built-in String, a list of characters. It covers searching, splitting, case conversion, encoding and decoding, and builders for producing text, tuned for large inputs and speed. It is maintained by the Haskell Text Team under the Core Libraries Committee.

Problems it solves

  • handle Unicode strings efficiently in Haskell instead of String
  • decode UTF-8 bytes into text in Haskell
  • build large text output fast in Haskell

Features

  • strict and lazy Text types
  • UTF-8 internal representation
  • encoding and decoding
  • text builders
  • search, split and case conversion

Alternatives

The same job

These do what text does.

  1. bytestring Fast, compact strict and lazy byte strings for Haskell

Compare text with the top 3