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

GHC ghc-devs at haskell.org
Sat Sep 5 08:17:44 UTC 2015


#10843: Allow do blocks without dollar signs as arguments
-------------------------------------+-------------------------------------
              Reporter:  agibiansky  |             Owner:  agibiansky
                  Type:  feature     |            Status:  new
  request                            |
              Priority:  normal      |         Milestone:
             Component:  Compiler    |           Version:  7.10.2
  (Parser)                           |
              Keywords:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
             Test Case:              |        Blocked By:
              Blocking:              |   Related Tickets:
Differential Revisions:              |
-------------------------------------+-------------------------------------
 I would like the following to be valid Haskell code:

 {{{#!hs
 main = when True do
   putStrLn "Hello!"
 }}}

 Instead of requiring a dollar sign before the "do". This would parse as


 {{{#!hs
 main = when True (do
   putStrLn "Hello!")
 }}}

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


More information about the ghc-tickets mailing list