| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.Text.ToText
Documentation
class (Typeable a, Read a) => ToText a where #
Minimal complete definition
Methods
toLazyText :: a -> Text #
fromText :: Text -> Either Text a #
maybeFromText :: Text -> Maybe a #
fromLazyText :: Text -> Either Text a #
maybeFromLazyText :: Text -> Maybe a #
Instances
| (ToTextBuilder a, Read a, Typeable a) => ToText a # | |
Defined in Data.Text.ToText | |
| ToText String # | |
| ToText ByteString # | |
Defined in Data.Text.ToText Methods toText :: ByteString -> Text # toLazyText :: ByteString -> Text # fromText :: Text -> Either Text ByteString # maybeFromText :: Text -> Maybe ByteString # fromLazyText :: Text -> Either Text ByteString # maybeFromLazyText :: Text -> Maybe ByteString # | |
| ToText ByteString # | |
Defined in Data.Text.ToText Methods toText :: ByteString -> Text # toLazyText :: ByteString -> Text # fromText :: Text -> Either Text ByteString # maybeFromText :: Text -> Maybe ByteString # fromLazyText :: Text -> Either Text ByteString # maybeFromLazyText :: Text -> Maybe ByteString # | |
| ToText Text # | |
| ToText Text # | |