Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Text = Text {
- textUnpack :: Text
- encodeLatin1 :: Text -> ByteString
Documentation
A thin wrapper around Text
.
Text | |
|
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.