wereHamster / etcd-hs

Haskell client for etcd
http://hackage.haskell.org/package/etcd
The Unlicense
11 stars 10 forks source link

etcd-1.0.5 build failures with http-conduit-2.3 #5

Open DanBurton opened 6 years ago

DanBurton commented 6 years ago

Seen on the Stackage build server; I was also able to reproduce the errors locally like so:

stack unpack etcd-1.0.5 && cd etcd-1.0.5
edit stack.yaml # add the following stack.yaml
stack build
# stack.yaml
resolver: nightly-2018-03-10
extra-deps:
- http-conduit-2.3.0

The errors were as follows:

/Users/dan/scratch/etcd-1.0.5/src/Network/Etcd.hs:226:31: error:
    Variable not in scope:
      withManager
        :: (Manager
            -> m0 (http-client-0.5.10:Network.HTTP.Client.Types.Response
                     ByteString))
           -> IO
                (http-client-0.5.10:Network.HTTP.Client.Types.Response ByteString)
    |
226 |     body <- responseBody <$> (withManager $ httpLbs req)
    |                               ^^^^^^^^^^^

/Users/dan/scratch/etcd-1.0.5/src/Network/Etcd.hs:239:31: error:
    Variable not in scope:
      withManager
        :: (Manager
            -> m1 (http-client-0.5.10:Network.HTTP.Client.Types.Response
                     ByteString))
           -> IO
                (http-client-0.5.10:Network.HTTP.Client.Types.Response ByteString)
    |
239 |     body <- responseBody <$> (withManager $ httpLbs $ req { method = "PUT" })
    |                               ^^^^^^^^^^^

/Users/dan/scratch/etcd-1.0.5/src/Network/Etcd.hs:248:31: error:
    Variable not in scope:
      withManager
        :: (Manager
            -> m2 (http-client-0.5.10:Network.HTTP.Client.Types.Response
                     ByteString))
           -> IO
                (http-client-0.5.10:Network.HTTP.Client.Types.Response ByteString)
    |
248 |     body <- responseBody <$> (withManager $ httpLbs $ req { method = "POST" })
    |                               ^^^^^^^^^^^

/Users/dan/scratch/etcd-1.0.5/src/Network/Etcd.hs:257:31: error:
    Variable not in scope:
      withManager
        :: (Manager
            -> m3 (http-client-0.5.10:Network.HTTP.Client.Types.Response
                     ByteString))
           -> IO
                (http-client-0.5.10:Network.HTTP.Client.Types.Response ByteString)
    |
257 |     body <- responseBody <$> (withManager $ httpLbs $ req { method = "DELETE" })
    |                               ^^^^^^^^^^^
DanBurton commented 6 years ago

I've removed etcd from the Stackage nightly build plan, and unfortunately it won't appear in the initial LTS 11 release.

To get back into nightly, open a PR on the Stackage repo as usual. To get into LTS 11, open an issue on https://github.com/fpco/lts-haskell/issues.