On Wed, Jan 25, 2012 at 7:38 PM, Yves Parès <[email protected]> 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.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe