yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Debug
Synopsis
initDebug :: FilePath -> IO ()
trace :: String -> a -> a
traceM :: Monad m => String -> a -> m a
traceM_ :: Monad m => String -> m ()
logPutStrLn :: MonadIO m => String -> m ()
logError :: MonadIO m => String -> m ()
logStream :: Show a => String -> Chan a -> IO ()
error :: String -> a
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 ().
logPutStrLn :: MonadIO m => String -> m ()Source
logError :: MonadIO m => String -> m ()Source
logStream :: Show a => String -> Chan a -> IO ()Source
error :: String -> aSource
Produced by Haddock version 2.6.1