uni-util-2.3.0.3: Utilities for the uniform workbench
Safe HaskellNone
LanguageHaskell2010

Util.Debug

Description

University of Bremen DATE : 2000 DESCRIPTION : This module provides a uniform interface for debugging purposes. In final versions of this module it would be best to make the debug function do nothing and force it to be inlined.

#########################################################################

Synopsis

Documentation

debug :: Show a => a -> IO () Source #

show something to log file if debugging is turned on.

debugAct :: String -> IO a -> IO a Source #

If an action fails print out a message before propagating message.

(@:) :: String -> IO a -> IO a Source #

alwaysDebug :: Show a => a -> IO () Source #

always show something to the log file

alwaysDebugAct :: String -> IO a -> IO a Source #

always print out a message if action fails.

debugString :: String -> IO () Source #

Send a string to the debug file. This differs from debug, in that debug will Haskell-escape the string and add a newline, while just writes to the file with no interpretation.

(@@:) :: String -> IO a -> IO a Source #

wrapError :: String -> a -> a Source #