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

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

Open
DanBurton opened this issue Mar 12, 2018 · 1 comment
Open

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

DanBurton opened this issue Mar 12, 2018 · 1 comment

Comments

@DanBurton
Copy link

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 added a commit to commercialhaskell/stackage that referenced this issue Mar 12, 2018
@DanBurton
Copy link
Author

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.

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