[Haskell-beginners] deep seq and bang patterns
Emmanuel Touzery
etouzery at gmail.com
Tue Dec 25 19:50:09 CET 2012
> A simple
>
> return $! result
>
> to force evaluation of result to WHNF suffices to require the fields
> (except
> the `channel' field that's not marked strict) being evaluated.
>
Otherwise I tested that right now and you are 100% right.
So strictness annotations + $! works fine and solves my problem and I also
mostly understand why it works like that :-)
I still need to do a little more reading on the topic but I'm much closer
now.
Thank you!
Emmanuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20121225/f1e2e302/attachment.htm>
More information about the Beginners
mailing list