[Haskell-cafe] Hierarchical tracing for debugging laziness
Yves Parès
yves.pares at gmail.com
Wed Jan 25 22:38:47 CET 2012
Hi, nice little package!
I just made a fork and added a new function makeHTrace to be able to have
separate variables 'level'.
I also add the htrace type signature (or else haddock won't generate
documentation for this module):
https://github.com/YwenP/htrace
I was also investigating in a way to fix an annoyment. You see, in GHCI:
> let {a = htrace "a" 12; b = htrace "b" 29; c = htrace "c" 10; d = htrace
"d" 90; x = htrace "," (htrace "+" (a+b), htrace "*" (c*d)) }
> x
prints:
,
(+
a
b
41,*
c
d
900)
Instead, we'd like to have (if I'm right):
,
+
a
b
*
c
d
(41,900)
But I haven't found a way to tell GHCI to fully evaluate 'x' but _not_
print its value.
2012/1/25 Eugene Kirpichov <ekirpichov at gmail.com>
> Thanks!
>
> I released it:
>
> http://hackage.haskell.org/package/htrace
> http://github.com/jkff/htrace
>
>
> On Wed, Jan 25, 2012 at 4:18 AM, Felipe Almeida Lessa <
> felipe.lessa at gmail.com> wrote:
>
>> Really nice! Looks like it could be a useful mini-package on Hackage.
>>
>> --
>> Felipe.
>>
>
>
>
> --
> Eugene Kirpichov
> Principal Engineer, Mirantis Inc. http://www.mirantis.com/
> Editor, http://fprog.ru/
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120125/f97c7f89/attachment.htm>
More information about the Haskell-Cafe
mailing list