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

Moduledjot-0.1.2Haskell2010

Djot.Parse

  • 2 types
  • 34 values
  • Packagedjot-0.1.2
  • Exports36
  • LanguageHaskell2010
  • LicenceMIT
  • SourceParse.hs
valueparse :: Parser s a -> s -> [Chunk] -> Maybe a
#

Apply a parser to a bytestring with a given user state. Returns Nothing on failure, Just result on success.

valuesatisfy :: (Char -> Bool) -> Parser s Char
#

Parse a (possibly multibyte) Char satisfying a predicate. Assumes UTF-8 encoding.

valueeof :: Parser s ()
#

Succeeds if no more input.

valuelookahead :: Parser s a -> Parser s a
#

Apply a parser, returning its result but not changing state or advancing.

valuebranch :: Parser s b -> Parser s a -> Parser s a -> Parser s a
#

Try the first parser: if it succeeds, apply the second, returning its result, otherwise the third.

valuews :: Parser s ()
#

Skip 1 or more ASCII whitespace.