Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get an offline Haskell debug trace?

Tags:

haskell

ghc

ghci

In the Haskell docs here http://www.haskell.org/haskellwiki/Debugging it mentions Hat to do offline debug traces, but that page is online. I found it via Google but it seems outdated; what is the best way to do offline Haskell traces?

like image 387
CharlesS Avatar asked Feb 19 '26 16:02

CharlesS


1 Answers

Hat isn't outdated -- olaf chitil revived it and is actively maintaining it: http://olafchitil.github.com/hat/

The latest version on hackage is tested to build with ghc 7.6.

It does, however, still only work on Haskell 98, with a few extensions. So programs that use more advanced GHC extensions (particularly regarding fancy type tricks) won't work with it. To my knowledge, there's nothing similar to hat that's been extended to handle a wider range of extensions to Haskell.

like image 197
sclv Avatar answered Feb 23 '26 02:02

sclv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!