shithub: MicroHs

ref: 0c1a6083d2e4108b0cc25b1018d7f7902e2be54c
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 ())