trace-function-call-0.1: Easy lightweight tracing of function arguments and results for ad hoc debugging

Debug.Trace.FunctionCall

Description

See the package page for a short tutorial.

Documentation

class Traceable a whereSource

Methods

traceFunction :: String -> a -> aSource

Display the parameters and result of evaluating the function when its result is forced. The first argument is the name of the function, as it should appear in the debugging output. The second parameter is the original function.

Instances

Show a => Traceable a 
(Showable a, Traceable b) => Traceable (a -> b) 

class Showable a whereSource

Methods

showFunction :: a -> StringSource

Instances

Show a => Showable a 
Showable (a -> b)