Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class (Functor m, Applicative m, Monad m) => MonadDebug m where
- displayDebugMessage :: Int -> String -> m ()
- traceDebugMessage :: Int -> String -> m a -> m a
- formatDebugMessage :: VerboseKey -> Int -> TCM Doc -> m String
- reportS :: (HasOptions m, MonadDebug m, MonadTCEnv m) => VerboseKey -> Int -> String -> m ()
- reportSLn :: (HasOptions m, MonadDebug m, MonadTCEnv m) => VerboseKey -> Int -> String -> m ()
- reportSDoc :: (HasOptions m, MonadDebug m, MonadTCEnv m) => VerboseKey -> Int -> TCM Doc -> m ()
- unlessDebugPrinting :: MonadTCM m => m () -> m ()
- traceSLn :: (HasOptions m, MonadDebug m) => VerboseKey -> Int -> String -> m a -> m a
- traceSDoc :: (HasOptions m, MonadDebug m) => VerboseKey -> Int -> TCM Doc -> m a -> m a
- verboseBracket :: (HasOptions m, MonadDebug m, MonadError err m) => VerboseKey -> Int -> String -> m a -> m a
Documentation
class (Functor m, Applicative m, Monad m) => MonadDebug m where Source #
displayDebugMessage :: Int -> String -> m () Source #
traceDebugMessage :: Int -> String -> m a -> m a Source #
formatDebugMessage :: VerboseKey -> Int -> TCM Doc -> m String Source #
Instances
MonadDebug ReduceM Source # | |
Defined in Agda.TypeChecking.Reduce.Monad | |
MonadDebug TerM Source # | |
Defined in Agda.Termination.Monad | |
MonadDebug m => MonadDebug (MaybeT m) Source # | |
Defined in Agda.TypeChecking.Monad.Debug | |
MonadDebug m => MonadDebug (ListT m) Source # | |
Defined in Agda.TypeChecking.Monad.Debug | |
MonadIO m => MonadDebug (TCMT m) Source # | |
Defined in Agda.TypeChecking.Monad.Debug | |
MonadDebug m => MonadDebug (NamesT m) Source # | |
Defined in Agda.TypeChecking.Names | |
MonadDebug m => MonadDebug (ReaderT r m) Source # | |
Defined in Agda.TypeChecking.Monad.Debug | |
MonadDebug m => MonadDebug (ExceptT e m) Source # | |
Defined in Agda.TypeChecking.Monad.Debug | |
MonadDebug m => MonadDebug (StateT s m) Source # | |
Defined in Agda.TypeChecking.Monad.Debug | |
(MonadDebug m, Monoid w) => MonadDebug (WriterT w m) Source # | |
Defined in Agda.TypeChecking.Monad.Debug |
reportS :: (HasOptions m, MonadDebug m, MonadTCEnv m) => VerboseKey -> Int -> String -> m () Source #
Conditionally print debug string.
reportSLn :: (HasOptions m, MonadDebug m, MonadTCEnv m) => VerboseKey -> Int -> String -> m () Source #
Conditionally println debug string.
reportSDoc :: (HasOptions m, MonadDebug m, MonadTCEnv m) => VerboseKey -> Int -> TCM Doc -> m () Source #
Conditionally render debug Doc
and print it.
unlessDebugPrinting :: MonadTCM m => m () -> m () Source #
traceSLn :: (HasOptions m, MonadDebug m) => VerboseKey -> Int -> String -> m a -> m a Source #
traceSDoc :: (HasOptions m, MonadDebug m) => VerboseKey -> Int -> TCM Doc -> m a -> m a Source #
Conditionally render debug Doc
, print it, and then continue.
verboseBracket :: (HasOptions m, MonadDebug m, MonadError err m) => VerboseKey -> Int -> String -> m a -> m a Source #
Print brackets around debug messages issued by a computation.