[Hat] Library support and general haskell debugging

Yang d9jh00502 at sneakemail.com
Mon Jan 1 04:28:36 EST 2007


hi, i'm new to hat (and haskell), and i'm interested in using hat to
get a trace of a simple (actually, not so simple to me) haskell
program that uses the hscurses library (its included example
application, ContactManager). i'm specifically trying to find out what
hscurses IO calls are being made, and in what order. this in turn is
because my numerous attempts to write applications based on this code
(ie using hscurses.widgets) have runtime failures.

however, i found to my surprise that hat doesn't actually support any
libraries outside the ones. for something like hscurses, which
provides bindings to the ncurses c library and is partly written in
hsc, is there still a way to use it without subjecting myself to too
much pain?

aside: i understand that one can copy over pure haskell libraries and
compile them using hmake, but is hat honestly useable in practice?
also, the only other debuggers i've found are: hood (superceded by
hat), debug.trace (which requires modification of your src), ghci's
dynamic breakpoints (not yet done, and almost certainly too painful to
try to get working/to work with), and buddha (which only seems to do
static src transformations, so it doesn't look like it'll help me). is
there no hope for me in haskell?

thanks and happy new years,

yang


More information about the Hat mailing list