yi-0.7.2: The Haskell-Scriptable Editor

Safe HaskellNone

Yi.Debug

Synopsis

Documentation

initDebug :: FilePath -> IO ()Source

Set the file to which debugging output should be written. Though this is called initDebug. Debugging output is not created by default (i.e., if this function is never called.) The target file can not be changed, nor debugging disabled.

trace :: String -> a -> aSource

Outputs the given string before returning the second argument.

traceM :: Monad m => String -> a -> m aSource

Traces x and returns y.

traceM_ :: Monad m => String -> m ()Source

Like traceM, but returns ().

logError :: MonadIO m => String -> m ()Source

logStream :: Show a => String -> Chan a -> IO ()Source