
Hello all, I have a quick question about Hat. Can Hat be used to trace an IO-intensive application with a GUI written in wxHaskell? Thanks, Arjan van IJzendoorn PS: I am not a member of the Hat mailing list so please include my e-mail address if you reply.

I have a quick question about Hat. Can Hat be used to trace an IO- intensive application with a GUI written in wxHaskell? Well, it certainly can... Weather the results are useful to you is a different matter :/
You may find it useful to use hat-observe to find non-IO-intensive functions that you suspect of being faulty and invoke hat-trace or hat-explore from there. Bob

Hi Arjan,
I have a quick question about Hat. Can Hat be used to trace an IO-intensive application with a GUI written in wxHaskell?
Being I/O intensive is not a problem. The GUI aspect should be OK - although at the moment there is no way (for instance) to "replay" the state of the GUI windows and then select an erroneous "snapshot" of how the screen looks. Instead, you will need to think in terms of the source code actions, perhaps choosing one in hat-observe then using hat-trail to go backwards from there. the fact you are using the wxHaskell libraries may be the biggest problem. You will need to transform the entire wxHaskell sources (maybe with -trusted) before you can trace anything. I recall the wx build system was quite large, so it may take some time to work out the best way to do this. Also, I think wx is almost pure haskell'98 + FFI, which is good, but it is possible that it depends on some other libraries not yet supported in Hat - so you would need to transform those too. If you have any difficulties, ask for help on this list. Regards, Malcolm
participants (3)
-
Arjan van IJzendoorn
-
Malcolm Wallace
-
Thomas Davie