NoTrace-0.3.0.0: Remove all the functions come from Debug.Trace after debugging

Copyright(c) Cindy Wang (CindyLinz) 2013
LicenseMIT
MaintainerCindy Wang (CindyLinz)
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Debug.NoTrace

Description

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

trace :: String -> a -> a Source

traceShow :: Show a => a -> b -> b Source

traceShowId :: Show a => a -> a Source

traceStack :: String -> a -> a Source

traceM :: Monad m => String -> m () Source

traceShowM :: (Show a, Monad m) => a -> m () Source

traceEvent :: String -> a -> a Source