purescript-debug icon indicating copy to clipboard operation
purescript-debug copied to clipboard

Document traceM

Open jgarte opened this issue 8 months ago • 1 comments

Hi, this is a feature request to document traceM with a code example. I'm not sure of the best practices for when/how to use it.

https://pursuit.purescript.org/packages/purescript-debug/6.0.2/docs/Debug#v:traceM

jgarte avatar Apr 07 '25 13:04 jgarte

Sure, we can add something for that, it's not too exotic though :smile: it's a convenience for tracing in monadic do blocks - this kind of thing:

thing = do
  someMonadicStuff
  Debug.traceM "Reached here"
  someOtherStuff

garyb avatar Apr 12 '25 13:04 garyb