[Haskell-cafe] Hierarchical tracing for debugging laziness
Yves Parès
yves.pares at gmail.com
Thu Jan 26 10:24:22 CET 2012
One day, I _really_ should learn all GHCI commands...
Thanks, Felipe ^^
2012/1/25 Felipe Almeida Lessa <felipe.lessa at gmail.com>
> On Wed, Jan 25, 2012 at 7:38 PM, Yves Parès <yves.pares at gmail.com> wrote:
> > But I haven't found a way to tell GHCI to fully evaluate 'x' but _not_
> print
> > its value.
>
> Use the :force, Yves!
>
> > 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)) }
> > :force x
> ,
> +
> a
> b
> *
> c
> d
> x = (41,900)
>
> Cheers! =)
>
> --
> Felipe.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120126/25cd0551/attachment.htm>
More information about the Haskell-Cafe
mailing list