Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monad-par-0.3.4.8 test suite does not compile with ghc-8.6.1 #66

Closed
peti opened this issue Oct 19, 2018 · 3 comments · Fixed by #67
Closed

monad-par-0.3.4.8 test suite does not compile with ghc-8.6.1 #66

peti opened this issue Oct 19, 2018 · 3 comments · Fixed by #67

Comments

@peti
Copy link

peti commented Oct 19, 2018

I get several errors of the following kind:

tests/ParTests_shared.hs:88:7: error:
    • No instance for (Control.Monad.Fail.MonadFail Par)
        arising from a do statement
        with the failable pattern ‘[a, b, c, d]’
    • In a stmt of a 'do' block:
        [a, b, c, d] <- sequence [new, new, new, new]
      In the second argument of ‘($)’, namely
        ‘do [a, b, c, d] <- sequence [new, new, ....]
            fork
              $ do x <- get a
                   put b (x + 1)
            fork
              $ do x <- get a
                   put c (x + 2)
            fork
              $ do x <- get b
                   y <- get c
                   ....
            ....’
      In the expression:
        runPar
          $ do [a, b, c, d] <- sequence [new, new, ....]
               fork
                 $ do x <- get a
                      put b (x + 1)
               fork
                 $ do x <- get a
                      put c (x + 2)
               fork
                 $ do x <- get b
                      y <- get c
                      ....
               ....
   |
88 |       [a,b,c,d] <- sequence [new,new,new,new]
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
~~~
@RyanGlScott
Copy link

@simonmar, can you upload a new version of monad-par with these changes?

@simonmar
Copy link
Owner

simonmar commented Nov 4, 2019

Done

@RyanGlScott
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants