Difference between revisions of "Strings"
Jump to navigation
Jump to search
(Initial page (stub)) |
(No difference)
|
Revision as of 11:41, 10 March 2012
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 ByteString
s: 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 Text
s: 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.
- convertible-text, a text conversion package (depricated)