[Haskell-cafe] Syntax proposal for "reverse apply"/"pipeline apply" (flip ($))

Edward Kmett ekmett at gmail.com
Thu Apr 17 19:20:54 UTC 2014


After the last time this made the rounds, this went to the core libraries
committee.

Consensus was achieved to add it as an infixl 1 & operator to Data.Function,
but not to Prelude,so we just need to put in the patch and you'll see it in
GHC 7.10.

Done.

-Edward Kmett

-Edward


On Thu, Apr 17, 2014 at 3:12 PM, Alexander Berntsen <alexander at plaimi.net>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 17/04/14 20:05, Clark Gaebel wrote:
> > Last I checked,
> >
> > (&) = flip ($)
> >
> > is both shorter to type, and more explicit than:
> >
> > import Control.Apply.Reverse
> There is no reason to use a library for making a reverse compose
> operator. The discussion should rather be whether this is worthwhile
> and interesting to add to prelude.
>
> - --
> Alexander
> alexander at plaimi.net
> https://secure.plaimi.net/~alexander
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iF0EAREIAAYFAlNQJ5cACgkQRtClrXBQc7Ut3AD+LUk9sfgw73IL7agSHOf4dstg
> uJlKi7yUHTiX8RrYbdIA9R6DFKXr8BITDUFIjM1Q4kBM1umQdlfsuKF4a01nIs0=
> =WNYj
> -----END PGP SIGNATURE-----
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140417/11088fb3/attachment.html>


More information about the Haskell-Cafe mailing list