Personal tools

Strings

From HaskellWiki

Revision as of 11:41, 10 March 2012 by Henk-Jan van Tuyl (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article is a stub. You can help by expanding it.

There are several types of strings that can be used in Haskell programs.

Contents

1 Strings

String
is the standard string type in Haskell; it is the same as
[Char]
. Strings are in Unicode.


2 ByteString

ByteString
is a type defined in the package bytestring, available from Hackage. There are two version of
ByteString
s: lazy and strict.


2.1 Lazy ByteString

TODO


2.2 Strict ByteString

TODO


2.3 Data.ByteString.Char8

TODO


3 Text

For a more efficient processing of text, there is
Text
, defined in the package text. There are two version of
Text
s: lazy and strict.


3.1 Lazy Text

TODO


3.2 Strict Text

TODO


4 Links

  • string-conversions; this package provides a simple type class for converting values of different string types into values of other string types.