[Haskell-cafe] GHC Extension Proposal: ArgumentBlock

Oliver Charles ollie at ocharles.org.uk
Sun Sep 6 06:22:43 UTC 2015


I'm loosely in favour of this for 'do', not quite so keen for lambda
expressions - but I have no justifiable reason why, other than "it looks a
bit weird".

I don't really like $ from an editor perspective though (tooling has to
become aware of a single function when performing refactorings), so
anything that helps reduce how prolific that operator is is a win in my
book!

Is the following going to be valid code under your extension?

   runReaderT
     do foo
        bar
     env

Likewise, I expect the following also parses:

import Control.Monad

main :: IO ()
main = when True
         do print "Hello"

- Ollie

On Sun, Sep 6, 2015 at 7:17 AM Alexey Vagarenko <vagarenko at gmail.com> wrote:

> -1.
> Creating a language extension just to get rid of a single character is
> overkill.
> _______________________________________________
> 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/20150906/83473152/attachment.html>


More information about the Haskell-Cafe mailing list