hermit-0.7.1.0: Haskell Equational Reasoning Model-to-Implementation Tunnel

Safe HaskellNone
LanguageHaskell2010

HERMIT.Dictionary.Debug

Contents

Synopsis

Debugging Rewrites

externals :: [External] Source

Exposed debugging Externals.

bracketR :: (Injection a LCoreTC, ReadBindings c, ReadPath c Crumb, HasDebugChan m, MonadCatch m) => String -> Rewrite c m a -> Rewrite c m a Source

Show before and after a rewrite.

observeR :: (Injection a LCoreTC, ReadBindings c, ReadPath c Crumb, HasDebugChan m, Monad m) => String -> Rewrite c m a Source

Print out the Core, with a message.

observeFailureR :: (Injection a LCoreTC, ReadBindings c, ReadPath c Crumb, HasDebugChan m, MonadCatch m) => String -> Rewrite c m a -> Rewrite c m a Source

If the Rewrite fails, print out the Core, with a message.

traceR :: (HasDebugChan m, Monad m) => String -> Rewrite c m a Source

Just say something, every time the rewrite is done.