ref: 55986eeb29b0872b17be0b20218e003da09a5b9b
dir: /lib/Debug/Trace.hs/
module Debug.Trace(module Debug.Trace) where
import Prelude
import Primitives
trace :: forall a . String -> a -> a
trace msg a = primitive "IO.performIO" (
do
putStrLn msg
return a
)
traceM :: forall (m :: Type -> Type) a . Monad m => String -> m ()
traceM s = trace s (return ())