debug
debug copied to clipboard
Debug not compatible with mdo blocks?
I'm getting the following when trying to instrument an entire file:
/home/george/haskell-tinywl//tmp/ghc23679_0/ghc_1.hspp:708:64: error
:
mdo, monad comprehension and [: :] not (yet) handled by Template
Haskell
I use mdo blocks throughout my module. I'm assuming this means Debug isn't compatible with these mdo blocks? If so, will changing all mdo blocks to rec statements make it work?
Sounds like yes. We go via template haskell, so if template haskell doesn't support mdo blocks we don't stand a chance.
Ok. Can confirm rec statements also do not work.
I think if you want them to work, you should ask for GHC to support them in Template Haskell.