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

GHC ghc-devs at haskell.org
Tue Feb 9 22:27:22 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 ekmett):

 You often do have to use

 {{{#!hs
 _ <- char ')'
 }}}

 just to avoid unused result warnings in things like parsers given a parser
 like

 {{{#!hs
 char :: Char -> Parser Char
 }}}

 Also, even if you just have do x; y in the ApplicativeDo encoding, nothing
 currently says that that will invoke (*>) over a manual expansion
 involving (<*>).

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


More information about the ghc-tickets mailing list