Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Debug.Trace.Compat
Synopsis
- traceId :: String -> String
- traceShowId :: Show a => a -> a
- traceM :: Applicative f => String -> f ()
- traceShowM :: (Show a, Applicative f) => a -> f ()
- traceWith :: (a -> String) -> a -> a
- traceShowWith :: Show b => (a -> b) -> a -> a
- traceEventWith :: (a -> String) -> a -> a
Documentation
traceShowId :: Show a => a -> a #
traceM :: Applicative f => String -> f () #
traceShowM :: (Show a, Applicative f) => a -> f () #
traceWith :: (a -> String) -> a -> a Source #
Like trace
, but outputs the result of calling a function on the argument.
>>>
traceWith fst ("hello","world")
hello ("hello","world")
Since: 4.18.0.0
traceShowWith :: Show b => (a -> b) -> a -> a Source #
traceEventWith :: (a -> String) -> a -> a Source #
Like traceEvent
, but emits the result of calling a function on its
argument.
Since: 4.18.0.0