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

yesod-core-1.6.10 #4319

Closed
alexeyzab opened this issue Jan 22, 2019 · 4 comments · Fixed by #4320
Closed

yesod-core-1.6.10 #4319

alexeyzab opened this issue Jan 22, 2019 · 4 comments · Fixed by #4320

Comments

@alexeyzab
Copy link
Contributor

Preprocessing test suite 'tests' for yesod-core-1.6.10..
Building test suite 'tests' for yesod-core-1.6.10..
[ 1 of 32] Compiling YesodCoreTest.Auth ( test/YesodCoreTest/Auth.hs, dist/build/tests/tests-tmp/YesodCoreTest/Auth.o )
[ 2 of 32] Compiling YesodCoreTest.Cache ( test/YesodCoreTest/Cache.hs, dist/build/tests/tests-tmp/YesodCoreTest/Cache.o )

test/YesodCoreTest/Cache.hs:69:5: error:
    • No instance for (Control.Monad.Fail.MonadFail (HandlerFor C))
        arising from a do statement
        with the failable pattern ‘Just (V2 v4a)’
    • In a stmt of a 'do' block: Just (V2 v4a) <- cacheByGet "4"
      In the expression:
        do ref <- newIORef 0
           V1 v1a <- cachedBy "1"
                       $ atomicModifyIORef ref $ \ i -> (i + 1, V1 $ i + 1)
           V1 v1b <- cachedBy "1"
                       $ atomicModifyIORef ref $ \ i -> (i + 1, V1 $ i + 1)
           V2 v2a <- cachedBy "1"
                       $ atomicModifyIORef ref $ \ i -> (i + 1, V2 $ i + 1)
           ....
      In an equation for ‘getKeyR’:
          getKeyR
            = do ref <- newIORef 0
                 V1 v1a <- cachedBy "1" $ atomicModifyIORef ref $ \ i -> ...
                 V1 v1b <- cachedBy "1" $ atomicModifyIORef ref $ \ i -> ...
                 ....
   |
69 |     Just (V2 v4a) <- cacheByGet "4"
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Going to add to expected-test-failures for now. CC @snoyberg

@snoyberg
Copy link
Contributor

Thanks @alexeyzab, I've opened #4320 after making a new release.

@MaxGabriel
Copy link
Contributor

Thanks @alexeyzab, not sure why I didn't run into that

@snoyberg
Copy link
Contributor

snoyberg commented Jan 22, 2019 via email

@MaxGabriel
Copy link
Contributor

Oh that's right, makes sense 👍

alexeyzab added a commit that referenced this issue Jan 23, 2019
Revert "Expect test failures for yesod-core, #4319"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants