Re: hood: how to use it?



About this list Date view Thread view Subject view Author view

Malcolm Wallace (malcolm-nhc@cs.york.ac.uk)
Mon, 6 Nov 2000 12:05:47 +0000


> NHC98-1.00 comes with an executable called hood, > but I culd not find any documentation on how to > use it. Apologies for the lack of documentation - the HOOD browser was a very late addition to the package. Essentially, you use the HOOD approach to tracing as described on its webpage, by importing the Observe library, and adding 'observe' annotations on data or functions of interest to you. However the nhc98 version of the library generates an XML file containing the trace information, rather than storing it in memory. When you run the program, it reports the name of this file, like so: txt = observe.xml To see the trace, start the HOOD browser tool with this filename as its argument: $ hood observe.xml You should then be able to point and click your way through what happened to the observed data/function value at runtime. A brief introduction to this Java-based browser is included in Andy Gill's Haskell Workshop 2000 paper which describes HOOD: http://www.cse.ogi.edu/~andy/pub/debug-draft.htm Hope this helps. Regards, Malcolm


About this list Date view Thread view Subject view Author view