yi-0.11.0: The Haskell-Scriptable Editor

Portabilityportable
Stabilityexperimental
Maintaineryi-devel@googlegroups.com
Safe HaskellNone

Yi.Debug

Description

Debug utilities used throughout Yi.

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 :: Text -> a -> aSource

Outputs the given string before returning the second argument.

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

Traces x and returns y.

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

Like traceM, but returns ().

logPutStrLn :: MonadBase IO m => Text -> m ()Source

logError :: MonadBase IO m => Text -> m ()Source

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