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

Christopher Done chrisdone at gmail.com
Thu Feb 19 20:53:21 UTC 2015

On 19 February 2015 at 21:25, Dan Burton <danburton.email at gmail.com> wrote:
> I feel the same about this as I do about idiom brackets. I think QuasiQuotes need more love. They are a little heavier syntactically, but are flexible enough to accomplish the same thing.

Yeah, if quasi quotes were more like Lisp macros that'd make a bunch
of these cases easier. It's a general complaint I have with TH, it
makes simple rewrites like this too not-worth-it. If I had such macros
I would've written an 'idiom' and 'infix' macro ages ago and wouldn't
have had to ask for approval from anyone.

But true macros seems much harder to slip by Haskellers. $(idiom [|f x
y z|]) is too heavy, but idiom f x y z is too implicit.

More information about the Haskell-Cafe mailing list