ptr-0.16.6.1: Abstractions for operations on pointers

Safe HaskellNone
LanguageHaskell2010

Ptr.ParseUnbound

Synopsis

Documentation

newtype ParseUnbound output Source #

Unbound parser, whose peeking action decides how much input to consume, and merely informs the executor about how many bytes it consumed.

Constructors

ParseUnbound (Ptr Word8 -> forall result. (Text -> IO result) -> (output -> Int -> IO result) -> IO result) 
Instances
Monad ParseUnbound Source # 
Instance details

Defined in Ptr.ParseUnbound

Functor ParseUnbound Source # 
Instance details

Defined in Ptr.ParseUnbound

Methods

fmap :: (a -> b) -> ParseUnbound a -> ParseUnbound b #

(<$) :: a -> ParseUnbound b -> ParseUnbound a #

Applicative ParseUnbound Source # 
Instance details

Defined in Ptr.ParseUnbound

io :: Int -> (Ptr Word8 -> IO output) -> ParseUnbound output Source #

pokeAndPeek :: PokeAndPeek input output -> ParseUnbound output Source #

foldWhile :: (Word8 -> Bool) -> (state -> Word8 -> state) -> state -> ParseUnbound state Source #

unsignedASCIIIntegral :: Integral a => ParseUnbound a Source #

Unsigned integral number encoded in ASCII.