diff --git a/hledger-lib/Hledger/Utils/Debug.hs b/hledger-lib/Hledger/Utils/Debug.hs index 3da3daf9f..6c65135b3 100644 --- a/hledger-lib/Hledger/Utils/Debug.hs +++ b/hledger-lib/Hledger/Utils/Debug.hs @@ -117,6 +117,9 @@ dbg9 = tracePrettyAt 9 -- | Convenience aliases for tracePrettyAtIO. -- Like dbg, but convenient to insert in an IO monad. +-- XXX These have a bug; they should use traceIO, not trace, +-- otherwise GHC can occasionally over-optimise +-- (cf lpaste a few days ago where it killed/blocked a child thread). dbg0IO :: (MonadIO m, Show a) => String -> a -> m () dbg0IO = tracePrettyAtIO 0