shithub: MicroHs

ref: 4f9c037b5e4354e9670d79f83a584a64fa79376d
dir: /lib/Debug/Trace.hs/

View raw version
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 a . Monad m => String -> m ()
traceM s = trace s (return ())