[Haskell-cafe] Space leak with unsafePerformIO

Henning Thielemann lemming at henning-thielemann.de
Mon Jun 28 17:21:33 EDT 2010


On Sun, 27 Jun 2010, Henning Thielemann wrote:

> Maybe I can combine splitAtLazy and (++) to a function like
>  splitAtAndAppend :: [x] -> ([a] -> [b]) -> ([a] -> [b]) -> [a] -> [b]
> but I'm afraid I will need pairs temporarily and then I run into the same 
> problems.

I have now implemented a solution that is tailored to special function 
types in the first ([a] -> [b]) argument. It works, but it is sad that the 
general, more declarative solution is so fragile.


More information about the Haskell-Cafe mailing list