protolude-0.3.4: A small prelude.

Safe Haskell | Trustworthy
Language | Haskell2010

Protolude.Conv

Description

An alternative to `ConvertText` that includes partial conversions. Not re-exported by `Protolude`.

# Documentation

class StringConv a b #

Minimal complete definition

strConv

#### Instances

Instances details

StringConv ByteString ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> ByteString #
StringConv ByteString ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> ByteString #
StringConv ByteString Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> Text #
StringConv ByteString Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> Text #
StringConv ByteString String # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> String #
StringConv ByteString ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> ByteString #
StringConv ByteString ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> ByteString #
StringConv ByteString Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> Text #
StringConv ByteString Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> Text #
StringConv ByteString String # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> ByteString -> String #
StringConv Text ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> ByteString #
StringConv Text ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> ByteString #
StringConv Text Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> Text #
StringConv Text Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> Text #
StringConv Text String # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> String #
StringConv Text ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> ByteString #
StringConv Text ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> ByteString #
StringConv Text Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> Text #
StringConv Text Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> Text #
StringConv Text String # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> Text -> String #
StringConv String ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> String -> ByteString #
StringConv String ByteString # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> String -> ByteString #
StringConv String Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> String -> Text #
StringConv String Text # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> String -> Text #
StringConv String String # |
Instance details Defined in Protolude.Conv Methods strConv :: Leniency -> String -> String #

strConv :: StringConv a b => Leniency -> a -> b #

toS :: StringConv a b => a -> b #

toSL :: StringConv a b => a -> b #

data Leniency #

Constructors

Lenient |
Strict |

#### Instances

Instances details

Bounded Leniency # |
Instance details Defined in Protolude.Conv Methods minBound :: Leniency # maxBound :: Leniency #
Enum Leniency # |
Instance details Defined in Protolude.Conv Methods succ :: Leniency -> Leniency # pred :: Leniency -> Leniency # toEnum :: Int -> Leniency # fromEnum :: Leniency -> Int # enumFrom :: Leniency -> [Leniency] # enumFromThen :: Leniency -> Leniency -> [Leniency] # enumFromTo :: Leniency -> Leniency -> [Leniency] # enumFromThenTo :: Leniency -> Leniency -> Leniency -> [Leniency] #
Show Leniency # |
Instance details Defined in Protolude.Conv Methods showsPrec :: Int -> Leniency -> ShowS # show :: Leniency -> String # showList :: [Leniency] -> ShowS #
Eq Leniency # |
Instance details Defined in Protolude.Conv Methods (==) :: Leniency -> Leniency -> Bool # (/=) :: Leniency -> Leniency -> Bool #
Ord Leniency # |
Instance details Defined in Protolude.Conv Methods compare :: Leniency -> Leniency -> Ordering # (<) :: Leniency -> Leniency -> Bool # (<=) :: Leniency -> Leniency -> Bool # (>) :: Leniency -> Leniency -> Bool # (>=) :: Leniency -> Leniency -> Bool # max :: Leniency -> Leniency -> Leniency # min :: Leniency -> Leniency -> Leniency #