k0001 / pipes-zlib

Pipes to deal with zlib compressed data.
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

`pipes-zlib-0.4.4.2`: Build failure with GHC 9.0 #36

Open andreasabel opened 1 year ago

andreasabel commented 1 year ago
src/Pipes/Zlib.hs:81:13: error:
    • Couldn't match type: forall x'1 x1.
                           Proxy x'1 x1 () B.ByteString m0 ()
                     with: Proxy x' x () B.ByteString m1 a0
      Expected: Popper -> Proxy x' x () B.ByteString m1 a0
        Actual: Popper -> Producer' B.ByteString m0 ()
    • In the first argument of ‘(=<<)’, namely ‘fromPopper’
      In a stmt of a 'do' block:
        fromPopper =<< liftIO (feedInflate inf bs)
      In the expression:
        do fromPopper =<< liftIO (feedInflate inf bs)
           flush inf
           leftover <- liftIO $ getUnusedInflate inf
           if B.null leftover then
               go p' inf
           else
               return $ Left (yield leftover >> p')
    • Relevant bindings include
        p' :: Producer B.ByteString m1 b (bound at src/Pipes/Zlib.hs:80:21)
        res :: Either b (B.ByteString, Producer B.ByteString m1 b)
          (bound at src/Pipes/Zlib.hs:77:7)
        p :: Producer B.ByteString m1 b (bound at src/Pipes/Zlib.hs:76:8)
        go :: Producer B.ByteString m1 b
              -> Inflate
              -> Proxy
                   x'
                   x
                   ()
                   B.ByteString
                   m1
                   (Either (Proxy X () () B.ByteString m1 b) b)
          (bound at src/Pipes/Zlib.hs:76:5)
   |
81 |             fromPopper =<< liftIO (Z.feedInflate inf bs)
   |             ^^^^^^^^^^
andreasabel commented 1 year ago

I published revision 1 which excludes base-4.15 (which is stand-in for GHC 9.0): https://hackage.haskell.org/package/pipes-zlib-0.4.4.2/revisions/

I also added base < 4.15 to all the older releases of pipes-zlib so that they do not get picked up by build plans in error.

2023-10-11T18:10:41Z AndreasAbel pipes-zlib-0.4.4-r1 2023-10-11T18:10:41Z AndreasAbel pipes-zlib-0.4.4.1-r2 2023-10-11T18:10:40Z AndreasAbel pipes-zlib-0.4.3-r1 2023-10-11T18:10:40Z AndreasAbel pipes-zlib-0.4.2-r1 2023-10-11T18:10:40Z AndreasAbel pipes-zlib-0.4.2.1-r1 2023-10-11T18:10:40Z AndreasAbel pipes-zlib-0.4.1-r1 2023-10-11T18:10:39Z AndreasAbel pipes-zlib-0.4.0-r1 2023-10-11T18:10:39Z AndreasAbel pipes-zlib-0.4.0.1-r1 2023-10-11T18:10:39Z AndreasAbel pipes-zlib-0.3.1-r1 2023-10-11T18:10:38Z AndreasAbel pipes-zlib-0.3.0-r1 2023-10-11T18:10:38Z AndreasAbel pipes-zlib-0.2.0.0-r1 2023-10-11T18:10:37Z AndreasAbel pipes-zlib-0.1.0-r1 2023-10-11T18:10:37Z AndreasAbel pipes-zlib-0.0.1-r1