shithub: MicroHs

ref: 7f3da47a8e1a1e6c6f9d63946ad84ed589310a17
dir: /lib/Debug/Trace.hs/

View raw version
module Debug.Trace(module Debug.Trace) where
import Prelude(); import MiniPrelude
import Primitives

trace :: forall a . String -> a -> a
trace msg a = primitive "IO.performIO" (
  do
    putStrLn msg
    return a
  )

traceM :: forall m . Monad m => String -> m ()
traceM s = trace s (return ())