protolude-0.3.0: A small prelude.

Safe HaskellSafe
LanguageHaskell2010

Protolude.ConvertText

Description

Non-partial text conversion typeclass and functions. For an alternative with partial conversions import Conv.

Synopsis

Documentation

class ConvertText a b where Source #

Convert from one Unicode textual type to another. Not for serialization/deserialization, so doesn't have instances for bytestrings.

Methods

toS :: a -> b Source #

Instances
ConvertText String String Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: String -> String Source #

ConvertText String Text Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: String -> Text Source #

ConvertText String Text Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: String -> Text Source #

ConvertText Text String Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: Text -> String Source #

ConvertText Text Text Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: Text -> Text Source #

ConvertText Text Text Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: Text0 -> Text Source #

ConvertText Text String Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: Text -> String Source #

ConvertText Text Text Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: Text -> Text0 Source #

ConvertText Text Text Source # 
Instance details

Defined in Protolude.ConvertText

Methods

toS :: Text -> Text Source #