[GHC] #11835: ApplicativeDo failed to desugar last line with pure $ <expr>

GHC ghc-devs at haskell.org
Thu Apr 14 14:23:41 UTC 2016


#11835: ApplicativeDo failed to desugar last line with pure $ <expr>
-------------------------------------+-------------------------------------
        Reporter:  Cosmia            |                Owner:  simonmar
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1-rc2
      Resolution:                    |             Keywords:  ApplicativeDo
Operating System:  MacOS X           |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #11607            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by simonpj):

 * owner:   => simonmar


Comment:

 Yes, it's another example of #11607.

 The user manual should state the importance of using `pure` or `return` as
 the last statement.  And point out that you can't use a `$`.

 Currently it is silent on these points.

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


More information about the ghc-tickets mailing list