| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Protolude.ConvertText
Description
Non-partial text conversion typeclass and functions.
For an alternative with partial conversions import Conv.
Synopsis
- class ConvertText a b where
- toS :: a -> b
- toUtf8 :: ConvertText a Text => a -> ByteString
- toUtf8Lazy :: ConvertText a Text => a -> ByteString
Documentation
class ConvertText a b where #
Convert from one Unicode textual type to another. Not for serialization/deserialization, so doesn't have instances for bytestrings.
Instances
| ConvertText ByteString ByteString # | |
Defined in Protolude.ConvertText Methods toS :: ByteString -> ByteString # | |
| ConvertText ByteString ByteString # | |
Defined in Protolude.ConvertText Methods toS :: ByteString -> ByteString # | |
| ConvertText ByteString ByteString # | |
Defined in Protolude.ConvertText Methods toS :: ByteString -> ByteString # | |
| ConvertText ByteString ByteString # | |
Defined in Protolude.ConvertText Methods toS :: ByteString -> ByteString # | |
| ConvertText Text Text # | |
Defined in Protolude.ConvertText | |
| ConvertText Text Text # | |
Defined in Protolude.ConvertText | |
| ConvertText Text String # | |
Defined in Protolude.ConvertText | |
| ConvertText Text Text # | |
Defined in Protolude.ConvertText | |
| ConvertText Text Text # | |
Defined in Protolude.ConvertText | |
| ConvertText Text String # | |
Defined in Protolude.ConvertText | |
| ConvertText String Text # | |
Defined in Protolude.ConvertText | |
| ConvertText String Text # | |
Defined in Protolude.ConvertText | |
| ConvertText String String # | |
Defined in Protolude.ConvertText | |
toUtf8 :: ConvertText a Text => a -> ByteString #
toUtf8Lazy :: ConvertText a Text => a -> ByteString #