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

Test suite fails to compile in GHC 8.6 #5

Closed
Taneb opened this issue Feb 13, 2019 · 0 comments
Closed

Test suite fails to compile in GHC 8.6 #5

Taneb opened this issue Feb 13, 2019 · 0 comments

Comments

@Taneb
Copy link

Taneb commented Feb 13, 2019

This due to MonadFail's existence:

...
[3 of 4] Compiling Data.Equivalence.Monad_Test ( testsuite/tests/Data/Equivalence/Monad_Test.hs, dist/build/test/test-tmp/Data/Equivalence/Monad_Test.o )

testsuite/tests/Data/Equivalence/Monad_Test.hs:79:3: error:
    • No instance for (Control.Monad.Fail.MonadFail
                         (EquivT s (Set Int) Int Data.Functor.Identity.Identity))
        arising from a do statement
        with the failable pattern ‘[cx, cy]’
    • In a stmt of a 'do' block: [cx, cy] <- getClasses [x, y]
      In the second argument of ‘($)’, namely
        ‘do [cx, cy] <- getClasses [x, y]
            combine cx cy
            d <- desc cx
            return (d == Set.fromList [x, y])’
      In the expression:
        runInt
          $ do [cx, cy] <- getClasses [x, y]
               combine cx cy
               d <- desc cx
               return (d == Set.fromList [x, y])
   |
79 |   [cx,cy] <- getClasses [x,y]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^

testsuite/tests/Data/Equivalence/Monad_Test.hs:90:3: error:
    • No instance for (Control.Monad.Fail.MonadFail
                         (EquivT s (Set Int) Int Data.Functor.Identity.Identity))
        arising from a do statement
        with the failable pattern ‘[cx, cy, cz]’
    • In a stmt of a 'do' block: [cx, cy, cz] <- getClasses [x, y, z]
      In the second argument of ‘($)’, namely
        ‘do [cx, cy, cz] <- getClasses [x, y, ....]
            combine cx cy
            combine cy cz
            cx === cz’
      In the expression:
        runInt
          $ do [cx, cy, cz] <- getClasses [x, y, ....]
               combine cx cy
               combine cy cz
               cx === cz
   |
90 |   [cx,cy,cz] <- getClasses [x,y,z]
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

testsuite/tests/Data/Equivalence/Monad_Test.hs:109:3: error:
    • No instance for (Control.Monad.Fail.MonadFail
                         (EquivT s (Set Int) Int Data.Functor.Identity.Identity))
        arising from a do statement
        with the failable pattern ‘[cx, cy]’
    • In a stmt of a 'do' block: [cx, cy] <- getClasses [x, y]
      In the second argument of ‘($)’, namely
        ‘do let l1 = x : l1'
                l2 = y : l2'
            cls1 <- getClasses l1
            cls2 <- getClasses l2
            [cx, cy] <- getClasses [x, y]
            ....’
      In the expression:
        runInt
          $ do let l1 = x : l1'
                   l2 = y : l2'
               cls1 <- getClasses l1
               cls2 <- getClasses l2
               [cx, cy] <- getClasses [x, y]
               ....
    |
109 |   [cx,cy] <- getClasses [x,y]
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^

testsuite/tests/Data/Equivalence/Monad_Test.hs:172:18: error:
    • No instance for (Control.Monad.Fail.MonadFail
                         (EquivT s (Set Int) Int Data.Functor.Identity.Identity))
        arising from a do statement
        with the failable pattern ‘[cx, cy]’
    • In a stmt of a 'do' block: [cx, cy] <- getClasses [x, y]
      In the second argument of ‘($)’, namely
        ‘do cls1 <- mapM getClasses l1
            mapM combineAll cls1
            cls2 <- getClasses l2
            mapM remove cls2
            ....’
      In the expression:
        runInt
          $ do cls1 <- mapM getClasses l1
               mapM combineAll cls1
               cls2 <- getClasses l2
               mapM remove cls2
               ....
    |
172 |                  [cx,cy] <- getClasses [x,y]
    |        
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

No branches or pull requests

2 participants