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

GHC ghc-devs at haskell.org
Mon Jul 4 08:12:49 UTC 2016


#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 akio):

 Replying to [comment:19 nomeata]:
 > Generally sympathetic to this change, less parenthesis are good. For
 lambdas it looks a bit unusual, but I think I’d quickly adjust to parsing
 that.
 >
 > Minor comment: In the wiki page you include `{-# SCC #-}` and `{-# CORE
 #-}`. I’d doubtful about them. I mentally parse them not as control
 structures, but as if they were normal functions (which happen to only
 work when used fully applied), and would be surprised if `f a b {-# SCC
 #-} d e` turn into  `f a b ({-# SCC #-} d e)`.

 Yes, I think that makes sense. Thank you for pointing it out.

 I just moved `SCC` and `CORE` from the main proposal to the "Design Space"
 section.

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


More information about the ghc-tickets mailing list