ghc-debug-client-0.4.0.0: Useful functions for writing heap analysis tools which use ghc-debug.
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Debug.Client.Monad.Class

Documentation

class (MonadFail m, Monad m) => DebugMonad m where Source #

Associated Types

type DebugEnv m Source #

Methods

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 :: Tracer IO String -> Mode -> IO (DebugEnv m) Source #

saveCache :: FilePath -> m () Source #

loadCache :: FilePath -> m () Source #

unsafeLiftIO :: IO a -> m a Source #