[Haskell-cafe] Proposal: (.:) operator in base.
dave at zednenem.com
Sat Aug 20 02:38:19 UTC 2016
On Fri, Aug 19, 2016 at 2:50 PM, Joachim Breitner <mail at joachim-breitner.de>
> Am Freitag, den 19.08.2016, 11:16 -0700 schrieb Theodore Lief Gannon:
> > Well... there's that rather worrisome introductory paragraph of the
> > Data.Composition docs, though:
> > "This module is for convenience and demonstrative purposes more than
> > it is for providing actual value. I do not recommend that you rely on
> > this module for performance-sensitive code. Because this module is
> > not based on Prelude's (.), some chances at optimization might be
> > missed by your compiler."
> I wonder if that is really something to worry about. Prelude’s (.) is
> not special in any way:
> The INLINE pragma and the definition with the right arity could be used
> in Data.Composition as well, and it would yield the same results.
Any RULEs involving Prelude’s (.) would need to be copied as well.
Dave Menendez <dave at zednenem.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe