protolude-0.1.10: A sensible set of defaults for writing custom Preludes.

Safe Haskell | Trustworthy
Language | Haskell2010

Conv

# Documentation

class StringConv a b where #

Minimal complete definition

strConv

Methods

strConv :: Leniency -> a -> b #

Instances

StringConv String String # |
Methods strConv :: Leniency -> String -> String #
StringConv String ByteString # |
Methods strConv :: Leniency -> String -> ByteString #
StringConv String ByteString # |
Methods strConv :: Leniency -> String -> ByteString #
StringConv String Text # |
Methods strConv :: Leniency -> String -> Text #
StringConv String Text # |
Methods strConv :: Leniency -> String -> Text #
StringConv ByteString String # |
Methods strConv :: Leniency -> ByteString -> String #
StringConv ByteString ByteString # |
Methods strConv :: Leniency -> ByteString -> ByteString #
StringConv ByteString ByteString # |
Methods strConv :: Leniency -> ByteString -> ByteString #
StringConv ByteString Text # |
Methods strConv :: Leniency -> ByteString -> Text #
StringConv ByteString Text # |
Methods strConv :: Leniency -> ByteString -> Text #
StringConv ByteString String # |
Methods strConv :: Leniency -> ByteString -> String #
StringConv ByteString ByteString # |
Methods strConv :: Leniency -> ByteString -> ByteString #
StringConv ByteString ByteString # |
Methods strConv :: Leniency -> ByteString -> ByteString #
StringConv ByteString Text # |
Methods strConv :: Leniency -> ByteString -> Text #
StringConv ByteString Text # |
Methods strConv :: Leniency -> ByteString -> Text #
StringConv Text String # |
Methods strConv :: Leniency -> Text -> String #
StringConv Text ByteString # |
Methods strConv :: Leniency -> Text -> ByteString #
StringConv Text ByteString # |
Methods strConv :: Leniency -> Text -> ByteString #
StringConv Text Text # |
Methods strConv :: Leniency -> Text -> Text #
StringConv Text Text # |
Methods strConv :: Leniency -> Text -> Text #
StringConv Text String # |
Methods strConv :: Leniency -> Text -> String #
StringConv Text ByteString # |
Methods strConv :: Leniency -> Text -> ByteString #
StringConv Text ByteString # |
Methods strConv :: Leniency -> Text -> ByteString #
StringConv Text Text # |
Methods strConv :: Leniency -> Text -> Text #
StringConv Text Text # |
Methods strConv :: Leniency -> Text -> Text #

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

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

data Leniency #

Constructors

Lenient |
Strict |

Instances

Bounded Leniency # |
Methods minBound :: Leniency # maxBound :: Leniency #
Enum Leniency # |
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] #
Eq Leniency # |
Methods (==) :: Leniency -> Leniency -> Bool # (/=) :: Leniency -> Leniency -> Bool #
Ord Leniency # |
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 #
Show Leniency # |
Methods showsPrec :: Int -> Leniency -> ShowS # show :: Leniency -> String # showList :: [Leniency] -> ShowS #