[Haskell-cafe] Proposal: Infix expression keyword: -XInfixExpressions

Clinton Mead clintonmead at gmail.com
Thu Feb 19 15:15:36 UTC 2015

"infix" for two or more arguments is pretty much just "foldl1".

On Fri, Feb 20, 2015 at 1:51 AM, Christopher Done <chrisdone at gmail.com>

> Ahoy,
> The idiom discussion brought back to mind a general problem (well, for
> me) in Haskell syntax which is there is no syntactic sugar for
> interspersing operators to many arguments.
> Regarding a solution for this, I wrote up a wee proposal here:
> https://gist.github.com/chrisdone/d9d33e4770a2fef19ad1
> If I go ahead and implement this in GHC as -XInfixExpressions or
> something (better names welcome), would it be likely to be accepted? I
> could first do an implementation in haskell-src-exts to demonstrate
> the concept.
> Ciao!
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150220/41198893/attachment.html>

More information about the Haskell-Cafe mailing list