HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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.