yi-0.12.1: The Haskell-Scriptable Editor

LicenseGPL-2
Maintaineryi-devel@googlegroups.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010
Extensions
  • Cpp
  • OverloadedStrings
  • FlexibleContexts
  • NondecreasingIndentation
  • LambdaCase

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 -> a Source

Outputs the given string before returning the second argument.

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

Traces x and returns y.

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

Like traceM, but returns ().

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

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

error :: Text -> a Source