Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Parse output = Parse (Int -> Ptr Word8 -> forall result. (Int -> IO result) -> (Text -> IO result) -> (output -> Int -> Ptr Word8 -> IO result) -> IO result)
- fail :: Text -> Parse output
- io :: Int -> (Ptr Word8 -> IO output) -> Parse output
- mapInIO :: (output -> IO newOutput) -> Parse output -> Parse newOutput
- pokeAndPeek :: PokeAndPeek input output -> Parse output
- limiting :: Int -> Parse output -> Parse output
- peekRemainders :: Parse ByteString
- word8 :: Parse Word8
- beWord16 :: Parse Word16
- beWord32 :: Parse Word32
- beWord64 :: Parse Word64
- bytes :: Int -> Parse ByteString
- allBytes :: Parse ByteString
- nullTerminatedBytes :: Parse ByteString
- nullTerminatedShortByteString :: Parse ShortByteString
- bytesWhile :: (Word8 -> Bool) -> Parse ByteString
- skipWhile :: (Word8 -> Bool) -> Parse ()
- foldWhile :: (Word8 -> Bool) -> (state -> Word8 -> state) -> state -> Parse state
- unsignedASCIIIntegral :: Integral a => Parse a
Documentation
pokeAndPeek :: PokeAndPeek input output -> Parse output Source #
peekRemainders :: Parse ByteString Source #
Decode the remaining bytes, whithout moving the parser's cursor. Useful for debugging.
bytesWhile :: (Word8 -> Bool) -> Parse ByteString Source #
unsignedASCIIIntegral :: Integral a => Parse a Source #
Unsigned integral number encoded in ASCII.