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

Portabilityportable
Stabilityprovisional
MaintainerCindy Wang (CindyLinz)
Safe HaskellSafe-Inferred

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 -> aSource

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