Portability | portable |
---|---|
Stability | provisional |
Maintainer | bram@typlab.com |
This modules contains examples of how to use Debug.TraceCall
- logSplitAt :: Show a => Int -> [a] -> ([a], [a])
- logSplitAtEx2 :: ([Int], [Int])
- logMapEx :: [Float]
- logMapDeepEx :: [Float]
- logReadFile :: String -> IO String
- logClosure :: [Int]
Documentation
logSplitAt :: Show a => Int -> [a] -> ([a], [a])Source
Creating a logged version of splitAt
logSplitAtEx2 :: ([Int], [Int])Source
We don't have to create specialized versions, we can also do this inline, on any function.
logMapDeepEx :: [Float]Source
With the deep
version we can also trace the function
arguments
logReadFile :: String -> IO StringSource
The normal traceCall function operates within the IO monad
logClosure :: [Int]Source
It is even possible to log closures