Skip to content

Bug in ApplicativeDo

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.

Trac metadata
Trac field Value
Version 7.10.3
Type Bug
TypeOfFailure OtherFailure
Priority high
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information