[GHC] #10892: ApplicativeDo should use *> and <*

GHC ghc-devs at haskell.org
Tue Mar 1 09:55:39 UTC 2016


#10892: ApplicativeDo should use *> and <*
-------------------------------------+-------------------------------------
        Reporter:  simonmar          |                Owner:  simonmar
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonmar):

 Some of it is addressed by #11607, but this one:

 {{{
 Prelude Data.Sequence> :t (\x -> do{return x})
 (\x -> do{return x}) :: Monad m => a -> m a
 }}}

 remains as it is.  Perhaps we should turn that into `pure x`, but it seems
 like a special case and could be surprising.  I'm undecided here.

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


More information about the ghc-tickets mailing list