binrep
Safe HaskellNone
LanguageGHC2021

Raehik.Compat.FlatParse.Basic.CutWithPos

Synopsis

Documentation

cut' :: forall (st :: ZeroBitType) e a. ParserT st e a -> (Pos -> e) -> ParserT st e a Source #

Convert a parsing failure to an error, which also receives the parser position (as a Pos, from the end of input).

err' :: forall e (st :: ZeroBitType) a. (Pos -> e) -> ParserT st e a Source #

Throw a parsing error, which also receives the parser position (as a Pos, from the end of input).