string package:vty
Make an
Image from a
String.
This is an alias for iso10646String since the usual case is that a
literal string like "foo" is represented internally as a list of ISO
10646 31 bit characters.
Note: Keep in mind that GHC will compile source encoded as UTF-8 but
the literal strings, while UTF-8 encoded in the source, will be
transcoded to a ISO 10646 31 bit characters runtime representation.
Make an image from a string of characters laid out on a single row
with the same display attribute. The string is assumed to be a
sequence of ISO-10646 characters. The input string should be sanitized
of escape sequences (ASCII 27) and carriage returns; otherwise layout
and attribute problems may result.
Note: depending on how the Haskell compiler represents string
literals, a string literal in a UTF-8 encoded source file, for
example, may be represented as a ISO-10646 string. That is, I think,
the case with GHC 6.10. This means, for the most part, you don't need
to worry about the encoding format when outputting string literals.
Just provide the string literal directly to iso10646String or string.
Make an
Image from a UTF-8 encoded lazy bytestring.
Make an
Image from a UTF-8 encoded strict bytestring.
Make an
Image from a string of characters layed out on a single
row. The input is assumed to be the bytes for UTF-8 encoded text.