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

GHC ghc-devs at haskell.org
Tue Jul 5 15:03:22 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 goldfire):

 Replying to [comment:22 simonpj]:
 > I'm one of those who thinks that the fact that `f R { x = e }` means `f
 (R { x = e })` is a mistake :-).
 >

 I agree with you here, but I think the proposal in this ticket is still
 sensible, given that the perhaps-unexpected parsing started with a
 keyword. In the record update case, the perhaps-unexpected parsing isn't
 known until the open-brace, even though your brain has to parse the
 preceding space differently. To me, that's the real problem with the
 parsing of record-update: it's not left-to-right.

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


More information about the ghc-tickets mailing list