aristidb / aws

Amazon Web Services for Haskell
BSD 3-Clause "New" or "Revised" License
238 stars 107 forks source link

Doesn't compile with latest http-conduit 2.2.0 #206

Closed felixonmars closed 7 years ago

felixonmars commented 8 years ago
[ 3 of 76] Compiling Aws.Core         ( Aws/Core.hs, dist/build/Aws/Core.o )

Aws/Core.hs:497:9: error:
    Not in scope: `HTTP.checkStatus'
    Perhaps you meant `HTTP.mkStatus' (imported from Network.HTTP.Types)
    Neither `Network.HTTP.Types' nor `Network.HTTP.Conduit' exports `checkStatus'.

Related change:

snoyberg/http-client@b476183

ilovezfs commented 8 years ago

Any progress on this?

aristidb commented 8 years ago

I haven't had time to work on this yet, but Pull Requests are always welcome.

ilovezfs notifications@github.com schrieb am Fr., 22. Juli 2016, 13:32:

Any progress on this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aristidb/aws/issues/206#issuecomment-234521320, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB3-ISonxtS-0hmNMwwZOcZYvbJ_i7dks5qYKo2gaJpZM4JFAHa .

jkachmar commented 8 years ago

I just poked at this a little bit and wanted to share what I found, since I don't have the time to go further right now:

Changing these lets Aws.Core compile, but causes Aws.S3.Commands.GetObject to fail wit the following messages

    Couldn't match expected type ‘HTTP.CookieJar -> r0’
                with actual type ‘HTTP.HttpExceptionContent’
    The function ‘HTTP.StatusCodeException’
    is applied to three arguments,
    but its type ‘HTTP.Response ()
                  -> B8.ByteString -> HTTP.HttpExceptionContent’
    has only two
    In the second argument of ‘($)’, namely
      ‘HTTP.StatusCodeException status headers cookies’
    In the expression:
      throwM $ HTTP.StatusCodeException status headers cookies
    Couldn't match expected type ‘HTTP.Response ()’
                with actual type ‘HTTP.Status’
    In the first argument of ‘HTTP.StatusCodeException’, namely
      ‘status’
    In the second argument of ‘($)’, namely
      ‘HTTP.StatusCodeException status headers cookies’
    Couldn't match type ‘[HTTP.Header]’ with ‘B8.ByteString’
    Expected type: B8.ByteString
      Actual type: HTTP.ResponseHeaders
    In the second argument of ‘HTTP.StatusCodeException’, namely
      ‘headers’
    In the second argument of ‘($)’, namely
      ‘HTTP.StatusCodeException status headers cookies’

Hopefully someone finds this helpful!

bgamari commented 7 years ago

@aristidb I think it would make sense to push out a release at this point; the restrictive bounds of aws are becoming quite painful.

aristidb commented 7 years ago

@bgamari Please feel free to go ahead and make the release. :-)

aristidb commented 7 years ago

I believe #213 closes this issue.

bgamari commented 7 years ago

Aristid Breitkreuz notifications@github.com writes:

@bgamari Please feel free to go ahead and make the release. :-)

Will do. Thanks!