[GHC] #11612: Bug in ApplicativeDo

GHC ghc-devs at haskell.org
Sat Feb 20 07:25:27 UTC 2016


#11612: Bug in ApplicativeDo
-------------------------------------+-------------------------------------
           Reporter:  simonmar       |             Owner:
               Type:  bug            |            Status:  new
           Priority:  high           |         Milestone:  8.0.1
          Component:  Compiler       |           Version:  7.10.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I discovered a bug in `ApplicativeDo`.  Fix coming shortly.  The problem
 is illustrated by this test case, which I will add to `ado001.hs` in the
 testsuite:

 {{{
 test11 :: M ()
 test11 = do
   x1 <- a
   let x2 = x1
   x3 <- b
   let x4 = c
       x5 = x4
   return (const () (x1,x2,x3,x4))
 }}}

 Which should give `(a | b)`, but gives `(a ; b)` in 8.0.1 RC.

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


More information about the ghc-tickets mailing list