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

Cant compile with recent versions of servant #165

Open
larsr opened this issue Jun 4, 2021 · 4 comments
Open

Cant compile with recent versions of servant #165

larsr opened this issue Jun 4, 2021 · 4 comments

Comments

@larsr
Copy link

larsr commented Jun 4, 2021

When using versions of servant higher than 0.16.2 I get the following error when I compile

gogol-core   > [6 of 6] Compiling Network.Google.Prelude
gogol-core   >
gogol-core   > /run/user/1000/stack-ad522337ea560fac/gogol-core-0.5.0/src/Network/Google/Prelude.hs:31:1: error:
gogol-core   >     Could not find module ‘Servant.Utils.Links’
gogol-core   >     Use -v (or `:set -v` in ghci) to see a list of the files searched for.
gogol-core   >    |
gogol-core   > 31 | import Servant.Utils.Links as Export hiding (Link)
gogol-core   >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gogol-core   >

The reason is that Servant.Utils.Links is not available in servant-0.17.0 and above. I got it to compile by putting this into stack.yaml

extra-deps:
- servant-0.16.2
@larsr
Copy link
Author

larsr commented Jun 4, 2021

Seems to be a dupe of #144

@yaitskov
Copy link

if it is fixed why there is no release? because nixpkgs release 21.05 has this bug

@s0kil
Copy link

s0kil commented Jul 27, 2021

Also just ran across this issue.

@s0kil
Copy link

s0kil commented Jul 27, 2021

Since I'm using Nix, my workaround was to first generate a nix file for core library,
cabal2nix https://github.com/brendanhay/gogol --subpath core
and then for the specific API I'm using
cabal2nix https://github.com/brendanhay/gogol --subpath gogol-shopping-content

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

3 participants