[GHC] #10843: Allow do blocks without dollar signs as arguments

GHC ghc-devs at haskell.org
Thu Aug 31 21:41:53 UTC 2017


#10843: Allow do blocks without dollar signs as arguments
-------------------------------------+-------------------------------------
        Reporter:  agibiansky        |                Owner:  agibiansky
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.2
  (Parser)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #11706            |  Differential Rev(s):  Phab:D1219
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 Is anyone still pursuing this?

 I was just tossing the idea in my head of proposing multiple block
 arguments akin to
 {{{
 foo
   • one complex argument
   • second complex argument
     even on multiple lines
   • third complex argument
 }}}
 (with maybe not precisely this syntax), but if we had `ArgumentDo` I could
 smiply write, as was pointed out in
 [https://ghc.haskell.org/trac/ghc/wiki/ArgumentDo#Multipleblockarguments
 The wiki proposal],
 {{{
 foo
   do one complex argument
   do second complex argument
        even on multiple lines
   do third complex argument
 }}}
 and I would have no need for a separate proposal…

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10843#comment:38>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list