[Haskell-cafe] latest Hood ?
Hugo Pacheco
hpacheco at gmail.com
Sat Dec 6 17:55:37 EST 2008
In fact, Hood is just the module Debug.Observe.GHood just extends
Debug.Observe with some more constructs to handle visualizations, for
instance, it adds a temporal dimension to observations.
This means that you can use the GHood cabal package nonetheless, and be able
to use both GHood graphically or textually (the features of Hood). GHood
gives you both.
Whenever you use runO, it will call the Java applet with the graphical
visualization but still output the textual trace from Hood.
As an example, just import Debug.Observe (the GHood one), run ghci and type
> runO $ print $ (length . observe "List Int" .concat) [[1,2],[3,4]]
I suggest you install the cabal package and try the sample module form the
Hood homepage:
http://www.haskell.org/hood/downloads/Main.hs
Feel free to ask for anything.
Cheers,
hugo
On Sat, Dec 6, 2008 at 9:59 PM, Simon Michael <simon at joyful.com> wrote:
> Hugo Pacheco wrote:
> > The library also features the visualization of the intermediate data
> > structure of hylomorphisms with GHood.
>
> I hadn't come across GHood and Hood before, and they look quite a useful
> addition to the toolbox.
>
> http://www.haskell.org/hood says "The current released version of HOOD is
> the July 2000 release, but there is also a patch to all HOOD to work with
> GHC 5.00.". The Observe.lhs there doesn't immediately work with current GHC.
> Has anyone got an updated version, or is this available in some more recent
> library or package ?
>
> Or, I may have misunderstood, and Debug.Trace may do everything that Hood
> did. Still, a working Hood would be useful to get the nice visualisations of
> GHood.
>
> Thanks - Simon
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
--
www.di.uminho.pt/~hpacheco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081206/71466461/attachment.htm
More information about the Haskell-Cafe
mailing list