HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulebinary-parser-0.5.7.6Haskell2010

BinaryParser

  • 1 type
  • 21 values
newtypenewtype BinaryParser a
#

A highly-efficient parser specialised for strict ByteStrings.

Supports the roll-back and alternative branching on the basis of the Alternative interface.

Does not generate fancy error-messages, which contributes to its efficiency.

Instances7Monad, Functor, MonadFail, Applicative, Alternative, MonadPlus, …
valuefold :: (a -> Word8 -> Maybe a) -> a -> BinaryParser a
#

Left-fold the bytes, terminating before the byte, on which the step function returns Nothing.

Extras

8 declarations