utf8-conversions-0.1.0.0: A conversion library that assumes utf8

Safe HaskellSafe
LanguageHaskell2010

Data.Convertible.Class

Synopsis

Documentation

class Convertible a b where Source #

A typeclass that represents something that can be converted. A Convertible a b instance represents an a that can be converted to a b.

Methods

convert :: a -> b Source #

Convert from a to b. Byte string is assumed to be in utf-8 encoding.

Instances
Convertible String String Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible String ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible String ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible String ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible String Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible String Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible String Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: String -> Text Source #

Convertible String Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: String -> Text Source #

Convertible String ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString String Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortByteString ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString String Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString String Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ByteString ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder String Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Builder -> Text Source #

Convertible Builder Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Builder -> Text Source #

Convertible Builder ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder String Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Builder Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Builder -> Text Source #

Convertible Builder Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Builder -> Text Source #

Convertible Builder ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Text String Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> String Source #

Convertible Text ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Text ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Text ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Text Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> Builder Source #

Convertible Text Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> Builder Source #

Convertible Text Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> Text Source #

Convertible Text Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text0 -> Text Source #

Convertible Text ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Text String Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> String Source #

Convertible Text ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Text ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Text ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible Text Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> Builder Source #

Convertible Text Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> Builder Source #

Convertible Text Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> Text0 Source #

Convertible Text Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Methods

convert :: Text -> Text Source #

Convertible Text ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText String Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText ShortByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText ByteString Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText Builder Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText Text Source # 
Instance details

Defined in Data.Convertible.Utf8

Convertible ShortText ShortText Source # 
Instance details

Defined in Data.Convertible.Utf8