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

GHC ghc-devs at haskell.org
Sun Sep 6 05:09:40 UTC 2015


#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:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by Rufflewind):

 > I don't see a common usecase for case, if, and let

 I've certainly written code like this:

 {{{#!hs
 foo x = pure $ case x of
   Just _  -> True
   Nothing -> False
 }}}

 Personally I never understood why `$` was required to begin with.  There's
 no sensible way to interpret `runST do …` except as `runST (do …)`.

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


More information about the ghc-tickets mailing list