Copyright | (c) Cindy Wang (CindyLinz) 2013 |
---|---|
License | MIT |
Maintainer | Cindy Wang (CindyLinz) |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
This module introduce functions that have identical types with functions in the Debug.Trace module.
You might write some programs like this:
import Debug.Trace fib 0 = 1 fib 1 = 1 fib n = ("fib " ++ show n) `trace` fib (n - 1) + fib (n - 2)
And after you finish the debugging process, just change the line
import Debug.Trace
into
import Debug.NoTrace
Then all the tracing functions are silently removed.
Documentation
traceShowId :: Show a => a -> a Source
traceStack :: String -> a -> a Source
traceShowM :: (Show a, Monad m) => a -> m () Source
putTraceMsg :: String -> IO () Source
traceEvent :: String -> a -> a Source
traceEventIO :: String -> IO () Source
traceMarker :: String -> a -> a Source
traceMarkerIO :: String -> IO () Source