unparse-attoparsec-0.1.0.0: An attoparsec roundtrip

Safe HaskellNone
LanguageHaskell2010

Data.Attoparsec.Unparse.Printer

Synopsis

Documentation

data TellAhead Source #

A streaming predicate on a ByteString, read character by character. Returns Nothing when it is no longer satisfied. TellTrue allows to simplify TellAhead values to keep a reduced complexity.

Constructors

Tell (Maybe Word8 -> Maybe TellAhead) 
TellTrue 

newtype Printer x a Source #

Constructors

Printer 

Fields

Instances
Profunctor Printer Source # 
Instance details

Defined in Data.Attoparsec.Unparse.Printer

Methods

dimap :: (a -> b) -> (c -> d) -> Printer b c -> Printer a d #

lmap :: (a -> b) -> Printer b c -> Printer a c #

rmap :: (b -> c) -> Printer a b -> Printer a c #

(#.) :: Coercible c b => q b c -> Printer a b -> Printer a c #

(.#) :: Coercible b a => Printer b c -> q a b -> Printer a c #

Attoparsec Printer Source # 
Instance details

Defined in Data.Attoparsec.Unparse.Profunctor

Monad (Printer x) Source # 
Instance details

Defined in Data.Attoparsec.Unparse.Printer

Methods

(>>=) :: Printer x a -> (a -> Printer x b) -> Printer x b #

(>>) :: Printer x a -> Printer x b -> Printer x b #

return :: a -> Printer x a #

fail :: String -> Printer x a #

Functor (Printer x) Source # 
Instance details

Defined in Data.Attoparsec.Unparse.Printer

Methods

fmap :: (a -> b) -> Printer x a -> Printer x b #

(<$) :: a -> Printer x b -> Printer x a #

MonadFail (Printer x) Source # 
Instance details

Defined in Data.Attoparsec.Unparse.Printer

Methods

fail :: String -> Printer x a #

Applicative (Printer x) Source # 
Instance details

Defined in Data.Attoparsec.Unparse.Printer

Methods

pure :: a -> Printer x a #

(<*>) :: Printer x (a -> b) -> Printer x a -> Printer x b #

liftA2 :: (a -> b -> c) -> Printer x a -> Printer x b -> Printer x c #

(*>) :: Printer x a -> Printer x b -> Printer x b #

(<*) :: Printer x a -> Printer x b -> Printer x a #

Alternative (Printer x) Source # 
Instance details

Defined in Data.Attoparsec.Unparse.Printer

Methods

empty :: Printer x a #

(<|>) :: Printer x a -> Printer x a -> Printer x a #

some :: Printer x a -> Printer x [a] #

many :: Printer x a -> Printer x [a] #

MonadPlus (Printer x) Source # 
Instance details

Defined in Data.Attoparsec.Unparse.Printer

Methods

mzero :: Printer x a #

mplus :: Printer x a -> Printer x a -> Printer x a #

star :: (x -> Printer' a) -> Printer x a Source #

star' :: (a -> Printer' ()) -> Printer a a Source #