Re:The Evolution of a Haskell Programmer (2010)
by jaspervdj on Wednesday March 06, 2024 @11:11AM
(#39617401)
You can use trace for that which is part of the base library:
https://hackage.haskell.org/package/base-4.19.1.0/docs/Debug...
Wait until you want debug output in a deeply nested function that isn't already in the IO monad.