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

Compile error for test suite when building based on nixpkgs #475

Open
maralorn opened this issue Jun 19, 2022 · 0 comments
Open

Compile error for test suite when building based on nixpkgs #475

maralorn opened this issue Jun 19, 2022 · 0 comments

Comments

@maralorn
Copy link
Contributor

When updating to reflex 0.8.2.0 in nixpkgs I get a type check error when compiling the test suite:

reflex> test/RequesterT.hs:68:18: error:
reflex>     • Could not deduce: ConstraintsFor TestRequest Read
reflex>         arising from a use of ‘testMatchRequestsWithResponses’
reflex>     • In the first argument of ‘runApp'’, namely
reflex>         ‘testMatchRequestsWithResponses’
reflex>       In a stmt of a 'do' block:
reflex>         os7 <- runApp'
reflex>                  testMatchRequestsWithResponses [Just $ TestRequest_Increment 1]
reflex>       In the expression:
reflex>         do os1 <- runApp' (unwrapApp testOrdering) $ [Just ()]
reflex>            print os1
reflex>            os2 <- runApp' (unwrapApp testSimultaneous)
reflex>                     $ map Just $ [This (), That (), ....]
reflex>            print os2
reflex>            ....
reflex>    |
reflex> 68 |   os7 <- runApp' testMatchRequestsWithResponses [ Just $ TestRequest_Increment 1 ]
reflex>    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
reflex> 
reflex> test/RequesterT.hs:68:18: error:
reflex>     • No instance for (Show
reflex>                          (TestRequest
reflex>                             (Data.Constraint.Forall.Skolem
reflex>                                (Data.Constraint.Forall.ComposeC Show TestRequest))))
reflex>         arising from a use of ‘testMatchRequestsWithResponses’
reflex>     • In the first argument of ‘runApp'’, namely
reflex>         ‘testMatchRequestsWithResponses’
reflex>       In a stmt of a 'do' block:
reflex>         os7 <- runApp'
reflex>                  testMatchRequestsWithResponses [Just $ TestRequest_Increment 1]
reflex>       In the expression:
reflex>         do os1 <- runApp' (unwrapApp testOrdering) $ [Just ()]
reflex>            print os1
reflex>            os2 <- runApp' (unwrapApp testSimultaneous)
reflex>                     $ map Just $ [This (), That (), ....]
reflex>            print os2
reflex>            ....
reflex>    |
reflex> 68 |   os7 <- runApp' testMatchRequestsWithResponses [ Just $ TestRequest_Increment 1 ]
reflex>    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is without any jailbreaks, with stackage-lts and newest dependencies from hackage.

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

1 participant