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

servant-0.11 update to 0.11 makes some packages out of bounds #2537

Closed
5 of 8 tasks
mihaimaruseac opened this issue May 24, 2017 · 5 comments
Closed
5 of 8 tasks

servant-0.11 update to 0.11 makes some packages out of bounds #2537

mihaimaruseac opened this issue May 24, 2017 · 5 comments

Comments

@mihaimaruseac
Copy link
Contributor

mihaimaruseac commented May 24, 2017

servant-0.11 (Haskell Servant [email protected]) is out of bounds for:

servant-client-0.11 (Haskell Servant [email protected]) is out of bounds for:

servant-server-0.11 (Haskell Servant [email protected]) is out of bounds for:

This was referenced May 24, 2017
@mihaimaruseac
Copy link
Contributor Author

mihaimaruseac commented May 24, 2017


~~~servant-0.10 (Haskell Servant <[email protected]>) is out of bounds for:~~~
- [x] servant-docs-0.10.0.1 (==0.11.*). Haskell Servant <[email protected]>. @SoenkeHahn @jkarni @phadej. Used by: library, executable, test-suite
- [x] servant-foreign-0.10.1 (==0.11.*). Haskell Servant <[email protected]>. @SoenkeHahn @jkarni @phadej. Used by: library, test-suite

@cdepillabout
Copy link
Member

yahoo-finaince-api has been updated:

https://hackage.haskell.org/package/yahoo-finance-api

@bergmark
Copy link
Member

avers-server failed to build with servant-* 0.11, ping @wereHamster

src/Avers/Server.hs:221:5: error:
    • Couldn't match type ‘Request -> (Response -> t1) -> t1’
                     with ‘Tagged Handler Application’
      Expected type: ServerT ObjectChanges Handler
        Actual type: ObjId
                     -> Credentials -> Request -> (Response -> t1) -> t1
    • The equation(s) for ‘serveObjectChanges’ have four arguments,
      but its type ‘Server ObjectChanges’ has none
      In an equation for ‘serveAversAPI’:
          serveAversAPI aversH auth
            = serveCreateObject
              :<|>
                serveLookupObject
                :<|>
                  servePatchObject
                  :<|>
                    serveDeleteObject
                    :<|>
                      serveLookupPatch
                      :<|>
                        serveObjectChanges
                        :<|>
                          serveCreateRelease
                          :<|>
                            serveLookupRelease
                            :<|>
                              serveLookupLatestRelease
                              :<|>
                                serveFeed
                                :<|>
                                  serveChangeSecret
                                  :<|>
                                    serveCreateSession
                                    :<|>
                                      serveLookupSession
                                      :<|>
                                        serveDeleteSession
                                        :<|>
                                          serveUploadBlob
                                          :<|> serveLookupBlob :<|> serveLookupBlobContent
            where
                serveCreateObject :: Server CreateObject
                serveCreateObject cred body
                  = do { let ...;
                         .... }
                serveLookupObject :: Server LookupObject
                serveLookupObject objId cred validationToken
                  = do { runAuthorization aversH $ lookupObjectAuthz auth cred objId;
                         .... }
                ....

src/Avers/Server.hs:263:5: error:
    • Couldn't match type ‘Request -> (Response -> t0) -> t0’
                     with ‘Tagged Handler Application’
      Expected type: ServerT Feed Handler
        Actual type: Credentials -> Request -> (Response -> t0) -> t0
    • The equation(s) for ‘serveFeed’ have three arguments,
      but its type ‘Server Feed’ has none
      In an equation for ‘serveAversAPI’:
          serveAversAPI aversH auth
            = serveCreateObject
              :<|>
                serveLookupObject
                :<|>
                  servePatchObject
                  :<|>
                    serveDeleteObject
                    :<|>
                      serveLookupPatch
                      :<|>
                        serveObjectChanges
                        :<|>
                          serveCreateRelease
                          :<|>
                            serveLookupRelease
                            :<|>
                              serveLookupLatestRelease
                              :<|>
                                serveFeed
                                :<|>
                                  serveChangeSecret
                                  :<|>
                                    serveCreateSession
                                    :<|>
                                      serveLookupSession
                                      :<|>
                                        serveDeleteSession
                                        :<|>
                                          serveUploadBlob
                                          :<|> serveLookupBlob :<|> serveLookupBlobContent
            where
                serveCreateObject :: Server CreateObject
                serveCreateObject cred body
                  = do { let ...;
                         .... }
                serveLookupObject :: Server LookupObject
                serveLookupObject objId cred validationToken
                  = do { runAuthorization aversH $ lookupObjectAuthz auth cred objId;
                         .... }
                ....

@3noch
Copy link
Member

3noch commented Jun 26, 2017

I never said so here, but ziptastic-core and ziptastic-client are now up-to-date as of a couple weeks ago.

@wereHamster
Copy link
Contributor

@bergmark I uploaded v0.0.19 which should compile against servant-0.11.

bergmark added a commit that referenced this issue Jun 26, 2017
bergmark added a commit that referenced this issue Jun 26, 2017
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

5 participants