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

Moduledjot-0.1.4.3Haskell2010

Djot.Parse

  • 2 types
  • 34 values
  • Packagedjot-0.1.4.3
  • 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.