Strings

From HaskellWiki
Revision as of 11:41, 10 March 2012 by Henk-Jan van Tuyl (talk | contribs) (Initial page (stub))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

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

Strings

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


ByteString

ByteString is a type defined in the package bytestring, available from Hackage.

There are two version of ByteStrings: lazy and strict.


Lazy ByteString

TODO


Strict ByteString

TODO


Data.ByteString.Char8

TODO


Text

For a more efficient processing of text, there is Text, defined in the package text.

There are two version of Texts: lazy and strict.


Lazy Text

TODO


Strict Text

TODO


Links

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