parsec-free-3.1.11.7: Parsec API encoded as a deeply-embedded DSL, for debugging and analysis
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Parsec.Free.Log

Documentation

type LogParsecT s u m a = MonadReader LogType m => ParsecT s u m a Source #

data ParseLog Source #

Constructors

forall s u m a. ParseAttempt Bool (ParsecF s u m a) 
forall s u m a. ParseFailed Bool ParseError (ParsecF s u m a) 
forall s u m a b.Show b => ParseSuccess Bool b (ParsecF s u m a) 
forall s u m a. ParseSuccessful Bool (ParsecF s u m a) 
Indent Bool 
Dedent 

Instances

Instances details
Show ParseLog Source # 
Instance details

Defined in Text.Parsec.Free.Log

_ParseSuccessful :: forall s u m a. Review ParseLog (Bool, ParsecF s u m a) Source #

_ParseSuccess :: forall b s u m a. Show b => Review ParseLog (Bool, b, ParsecF s u m a) Source #

_ParseFailed :: forall s u m a. Review ParseLog (Bool, ParseError, ParsecF s u m a) Source #

_ParseAttempt :: forall s u m a. Review ParseLog (Bool, ParsecF s u m a) Source #

data LogEntry Source #

Constructors

LogEntry 

Instances

Instances details
Show LogEntry Source # 
Instance details

Defined in Text.Parsec.Free.Log

attempt :: (MonadIO m, MonadReader LogType m) => Bool -> ParsecF s u' m b -> ParsecT s u m a -> ParsecT s u m a Source #

attemptShow :: (MonadIO m, MonadReader LogType m, Show a) => Bool -> ParsecF s u' m b -> ParsecT s u m a -> ParsecT s u m a Source #

indented :: (MonadIO m, MonadReader LogType m) => Bool -> ParsecT s u m a -> ParsecT s u m a Source #

evalLog :: (MonadIO m, MonadReader LogType m, Stream s m t, Show t) => ParsecDSL s u m a -> ParsecT s u m a Source #

dumpLog :: MonadIO m => [ParseLog] -> m () Source #