| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
RFC.String
Contents
Documentation
type StrictText = Text Source #
type LazyByteString = ByteString Source #
type StrictByteString = ByteString Source #
type ConvertibleToSBS a = ConvertibleStrings a StrictByteString Source #
type ConvertibleFromSBS a = ConvertibleStrings StrictByteString a Source #
type ConvertibleToString a = ConvertibleStrings a String Source #
type ConvertibleFromString a = ConvertibleStrings String a Source #
toStrictText :: ToText a => a -> StrictText Source #
toLazyText :: ToText a => a -> LazyText Source #
emptyString :: FromText a => a Source #
class ConvertibleStrings a b where Source #
Minimal complete definition
Instances
| ConvertibleStrings a a Source # | |
| (ToText a, FromText b) => ConvertibleStrings a b Source # | |
| ConvertibleStrings StrictByteString LazyByteString Source # | |
| ConvertibleStrings LazyByteString StrictByteString Source # | |
| ConvertibleStrings StrictText String Source # | |
| (ToText (UTF8 a), FromText b) => ConvertibleStrings a (UTF8 b) Source # | |
| (DecodeText f a, FromText b) => ConvertibleStrings a (f b) Source # | |
| (ToText a, FromText (UTF8 b)) => ConvertibleStrings (UTF8 a) b Source # | |
type LazyTextBuilder = Builder Source #
module Data.Text.Conversions
Orphan instances
| ToSample StrictText Source # | |
| ToSample LazyText Source # | |
| ToText Char Source # | |
| ToText URI Source # | |
| ToText LazyTextBuilder Source # | |
| (Show a, DecodeText Maybe a, MonadFail m) => DecodeText m a Source # | |
| ToText a => ToText (UTF8 a) Source # | |
| MonadFail f => FromText (f URI) Source # | |
| FromText a => FromText (UTF8 a) Source # | |