| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unwitch.Convert.Text
Description
Conversions from Text.
Synopsis
- toLazyText :: Text -> Text
- toString :: Text -> String
- fromString :: String -> Text
- toByteStringUtf8 :: Text -> ByteString
- toByteStringUtf16LE :: Text -> ByteString
- toByteStringUtf16BE :: Text -> ByteString
- toByteStringUtf32LE :: Text -> ByteString
- toByteStringUtf32BE :: Text -> ByteString
- toByteStringLatin1 :: Text -> Maybe ByteString
Documentation
toLazyText :: Text -> Text Source #
fromString :: String -> Text Source #
toByteStringUtf8 :: Text -> ByteString Source #
toByteStringUtf16LE :: Text -> ByteString Source #
toByteStringUtf16BE :: Text -> ByteString Source #
toByteStringUtf32LE :: Text -> ByteString Source #
toByteStringUtf32BE :: Text -> ByteString Source #
toByteStringLatin1 :: Text -> Maybe ByteString Source #
Returns Nothing if any character exceeds xFF.