trace-call-0.1: functions for logging the arguments and results of function calls

Portabilityportable
Stabilityprovisional
Maintainerbram@typlab.com

Debug.TraceCall.Examples

Description

This modules contains examples of how to use Debug.TraceCall

Synopsis

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.

logMapEx :: [Float]Source

By default function arguments will be ignored

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