libriscv-0.1.0.0: A versatile, flexible and executable formal model for the RISC-V architecture.
Safe HaskellSafe-Inferred
LanguageHaskell2010

LibRISCV.Effects.Logging.Default.Interpreter

Description

Provides the default interpretation for the logging effect.

Synopsis

Documentation

defaultLogging :: MonadIO m => LogInstructionFetch ~> m Source #

The default effectful logging interpreter which writes the InstructionType of a fetched instruction to standard output, before executing it. This is particularly useful for debugging but is quite verbose in the common case.

noLogging :: Monad m => LogInstructionFetch ~> m Source #

A stub implementation of an effectful interpreter which ignores any logging effects entirely. Should be used when no debugging output is desired.