brendanhay / gogol

A comprehensive Google Services SDK for Haskell.
Other
281 stars 105 forks source link

Upgrade to new Servant versions #156

Closed danwdart closed 3 years ago

danwdart commented 3 years ago

Trying to compile gogol-core 0.5.0 currently errors with the following:

[6 of 6] Compiling Network.Google.Prelude ( src/Network/Google/Prelude.hs, dist/build/Network/Google/Prelude.o )

src/Network/Google/Prelude.hs:31:1: error:
    Could not find module ‘Servant.Utils.Links’
    Use -v to see a list of the files searched for.
   |
31 | import Servant.Utils.Links as Export hiding (Link)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is because Servant has removed that file, but gogol-core has no upper bound on its version restriction.

Workaround for now: Restrict servant to < 0.17 because Servant.Utils.Links no longer exists in 0.17.

AlistairB commented 3 years ago

Hi, this has been fixed in master but not released. I don't think @brendanhay has time for maintaining this library at the moment. I am working around the issue by loading gogol via git. See https://github.com/brendanhay/gogol/issues/147#issuecomment-635735272

danwdart commented 3 years ago

Ah, thanks!

yaitskov commented 3 years ago

me too ;)