Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class (MonadFail m, Monad m) => DebugMonad m where Source #
request :: (Show resp, Typeable resp) => Request resp -> m resp Source #
requestBlock :: (Show resp, Typeable resp) => BlockCacheRequest resp -> m resp Source #
traceMsg :: String -> m () Source #
printRequestLog :: DebugEnv m -> IO () Source #
runDebug :: DebugEnv m -> m a -> IO a Source #
runDebugTrace :: DebugEnv m -> m a -> IO (a, [String]) Source #
newEnv :: Mode -> IO (DebugEnv m) Source #
saveCache :: FilePath -> m () Source #
loadCache :: FilePath -> m () Source #
unsafeLiftIO :: IO a -> m a Source #
Instances
DebugMonad DebugM Source # | |
Defined in GHC.Debug.Client.Monad.Simple request :: (Show resp, Typeable resp) => Request resp -> DebugM resp Source # requestBlock :: (Show resp, Typeable resp) => BlockCacheRequest resp -> DebugM resp Source # traceMsg :: String -> DebugM () Source # printRequestLog :: DebugEnv DebugM -> IO () Source # runDebug :: DebugEnv DebugM -> DebugM a -> IO a Source # runDebugTrace :: DebugEnv DebugM -> DebugM a -> IO (a, [String]) Source # newEnv :: Mode -> IO (DebugEnv DebugM) Source # saveCache :: FilePath -> DebugM () Source # loadCache :: FilePath -> DebugM () Source # unsafeLiftIO :: IO a -> DebugM a Source # |