Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Text = Text Text
- encodeLatin1 :: Text -> ByteString
Documentation
A thin wrapper around Text
.
Eq Text Source # | |
Ord Text Source # | |
Show Text Source # | Shown as a string literal, like
|
IsString Text Source # | Allows you to write
|
Generic Text Source # | |
ToJSON Text Source # | Encoded directly as a JSON string.
|
Binary Text Source # | Text is both length-prefixed and null-terminated.
|
BinaryBit Text Source # | Both length-prefixed and null-terminated. The bits in each byte are reversed.
|
NFData Text Source # | |
type Rep Text Source # | |
encodeLatin1 :: Text -> ByteString Source #
Encodes text as Latin-1. Note that this isn't really safe if the text has characters that can't be encoded in Latin-1.
>>>
encodeLatin1 "A"
"A"