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

Fix cassava doubledash #180

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

nh2
Copy link
Contributor

@nh2 nh2 commented Jan 16, 2018

When trying to install keter with wget -O - https://raw.githubusercontent.com/snoyberg/keter/master/setup-keter.sh | bash I got:

...
+ stack setup
Writing implicit global project config file to: /root/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-10.3
Downloaded lts-10.3 build plan.    
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

That is this issue: haskell-hvr/cassava#155

This PR fixes it by making the setup-keter.sh install script install the latest version of stack.

It also fixes the problem that the stack install used inside didn't specify the resolver, so it might use a newer ghc than keter is compatible with. In my case, it didn't build with ghc 8.2, failing with:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for keter-1.4.3.2:
    unix-compat-0.5.0.1 from stack configuration does not match >=0.3 && <0.5 (latest
                        matching version is 0.4.3.1)
needed since keter is a build target.

So I pass --resolver giving the same resolver as in stack.yaml in this git repo.

…t sources.

The apt sources for stack are no longer maintained.
They have no version newer than stack 1.5.1.

haskellstack.org is now the official install location
even for apt-base distros.

With stack 1.5.1, installing keter fails with:

  AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

This is caused by haskell-hvr/cassava#155.
Using the latest stack, works around that issue.
@creichert creichert self-requested a review September 1, 2018 21:31
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

Successfully merging this pull request may close these issues.

2 participants