file-location-0.2.3: common functions that show file location information

Debug.Util

Description

functions that help you with debugging. Most would make sense in the Debug.Trace module

Synopsis

Documentation

debug :: Show a => a -> aSource

A version of Debug.Trace.trace that just prints a value. This should be included in Debug.Trace

debugM :: (Monad m, Show a) => a -> m aSource

monadic debug - like debug, but works as a standalone line in a monad TODO: TH version with error loaction info

debugMsg :: Show a => String -> a -> aSource

A version of Debug.Trace.trace that just prints a value and a message. This should be included in Debug.Trace

ltrace :: Show a => String -> a -> aSource

labelled trace - like strace, with a label prepended

ltraceM :: (Monad m, Show a) => String -> a -> m aSource

monadic debug - like debug, but works as a standalone line in a monad TODO: TH version with error loaction info

strace, traceId :: Show a => a -> aSource

trace (print on stdout at runtime) a showable expression like debug, but does not print DEBUG: traceId is an alias for strace strace stands for show trace traceId means it returns itself after tracing like the id function