ptr-0.16.2: 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) 

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.