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

GHC ghc-devs at haskell.org
Tue Feb 9 21:25:05 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 simonpj):

 Interesting.  For sequences why would you say
 {{{
 do { ...
    ; x <- e
    ; ... }
 }}}
 if you were just going to discard `x`?  Can you give a particular example
 of a (plausible) program whose complexity becomes asymptotically better?
 I bet you have some in mind.

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


More information about the ghc-tickets mailing list