symparsec-1.1.1: Type level string parser combinators
Safe HaskellSafe-Inferred
LanguageGHC2021

Symparsec

Synopsis

Base definitions

type Run p sym = MapLeftRender (Run' p sym) Source #

Run the given parser on the given Symbol, returning an ErrorMessage on failure.

run' :: forall {s} {r} (p :: PParser s r) r'. SingParser p => (forall a. PR p a -> r') -> String -> Either (ERun String) (r', String) Source #

Run the singled version of type-level parser on the given String, returning an ERun on failure.

You must provide a function for demoting the singled return type. (demote can do this for you automatically.)

Parsers