| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | Cindy Wang (CindyLinz) |
| Safe Haskell | Safe-Inferred |
Debug.NoTrace
Description
This module introduce functions that have identical types with functions in the 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.