HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulebinary-parser-0.5.7.7Haskell2010

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