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.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to