shithub: MicroHs

ref: 9fc89738f4d7e66b9b1972af8ee12665c39b8b56
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
  )