[Haskell-cafe] Function hanging in infinite input
Jerzy Karczmarczuk
jerzy.karczmarczuk at unicaen.fr
Sun Apr 26 19:41:08 UTC 2015
Am 04/26/2015 um 08:38 PM schrieb Matthew Korson:
>> The problem is that tAppend is too strict; it evaluates both its arguments before producing anything.
That's it. Define
*tAppend (Temporal as) ~(Temporal bs) = Temporal (as ++ bs)*
No need (I think) to pass through the toList, which is a redundant
ping-pong.
Jerzy K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150426/698301b5/attachment.html>
More information about the Haskell-Cafe
mailing list