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

GHC ghc-devs at haskell.org
Thu Apr 14 23:00:50 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:                    |
-------------------------------------+-------------------------------------

Comment (by simonmar):

 @simonpj, the documentation does say that you need to use `pure` and
 `return`.

 I'll add a note about `$`.

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


More information about the ghc-tickets mailing list