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

conduit: Fix tests for GHC 9.2 #475

Merged
merged 1 commit into from
Nov 28, 2021
Merged

Conversation

hololeap
Copy link
Contributor

@hololeap hololeap commented Nov 27, 2021

Similar fix to #473

Tests were failing to compile with

test/main.hs:267:49: error:
    • Couldn't match type: forall b2.
                           (() -> CI.Pipe o5 o5 o5 () m5 b2) -> CI.Pipe o5 o5 o5 () m5 b2
                     with: (r2 -> CI.Pipe l2 i4 o4 u2 m4 r2)
                           -> CI.Pipe
                                b1
                                b1
                                Int
                                ()
                                (Control.Monad.Trans.Resource.Internal.ResourceT IO)
                                ()
      Expected: ConduitT o5 o5 m5 ()
                -> (r2 -> CI.Pipe l2 i4 o4 u2 m4 r2)
                -> CI.Pipe
                     b1
                     b1
                     Int
                     ()
                     (Control.Monad.Trans.Resource.Internal.ResourceT IO)
                     ()
        Actual: ConduitT o5 o5 m5 ()
                -> forall b.
                   (() -> CI.Pipe o5 o5 o5 () m5 b) -> CI.Pipe o5 o5 o5 () m5 b
    • In the expression: CI.unConduitT
      In the first argument of ‘($)’, namely ‘(`CI.unConduitT` CI.Done)’
      In the first argument of ‘CI.injectLeftovers’, namely
        ‘((`CI.unConduitT` CI.Done) $ CL.map (* 2))’
    |
267 |                     CI.>+> CI.injectLeftovers ((`CI.unConduitT` CI.Done) $ CL.map (* 2))) >>=)
    |

(etc)

Copy link
Owner

@snoyberg snoyberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@snoyberg snoyberg merged commit 239ad7c into snoyberg:master Nov 28, 2021
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 this pull request may close these issues.

None yet

2 participants