If you mean removing intermediate lists (also known as
fusion, or deforestation), then yes GHC does.
The idea is described in "A short cut to deforestation",
FPCA'93. One click from
http://research.microsoft.com/~simonpj/papers/papers.html
Simon
> -----Original Message-----
> From: Viktor Kuncak
> Sent: Wednesday, September 01, 1999 6:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Opposite of (:)
>
>
> Marcin Kowalczyk wrote:
>
> > I think that composing a list by (.) from (x:)'s instead of by (:)
> > from x's should be good, although I'm not sure how good comparing to
> > (:)'s at the beginning of the list. It means that a list is
> represented
> > by the function concatenating the list to the argument.
> Such functions
>
> > can be glued by function composition, also from equal big parts.
>
> Do GHC or NHC do any optimizations of functional composition for the
> case of single threaded use of functional values?
>
> Viktor
>