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

Stack information out of date? #6

Open
FranklinChen opened this issue May 13, 2022 · 10 comments
Open

Stack information out of date? #6

FranklinChen opened this issue May 13, 2022 · 10 comments

Comments

@FranklinChen
Copy link
Contributor

stack.yaml and stack.yaml.github look old. In particular, I just got a Mac Studio and can't build with the current stack.yaml:

$ stack build
No setup information found for ghc-8.10.2 on your platform.
This probably means a GHC bindist has not yet been added for OS key 'macosx-aarch64'.
Supported versions: ghc-8.10.5, ghc-8.10.6, ghc-8.10.7, ghc-9.0.2, ghc-9.2.1, ghc-9.2.2
@ranjitjhala
Copy link
Member

ranjitjhala commented May 13, 2022 via email

@FranklinChen
Copy link
Contributor Author

It took forever to build, but yes, it did work!

@facundominguez
Copy link
Contributor

The configuration has been updated in #14

@igormoreno
Copy link

How should I change the stack.yaml file to use the new 9.0.2 release of Liquid Haskell?

@facundominguez
Copy link
Contributor

Hello! I added a configuration example here: #19

Search for stack/stack-9.0.2.yaml.

@igormoreno
Copy link

wow! that was fast :-) thank you

I'm finding a couple of problems though:

  • when I use the configuration in stack.yaml I get:
           liquid-base needed, but the Stack
                       configuration has no
                       specified version (latest
                       matching version is
                       4.15.1.0)

I tried to add that package to the extra dependencies and then it complains about liquid-ghc-prim and when I added that to the dependencies some compilation error happened

Error: [S-636]
Stack looks for packages in the directories configured in
the 'packages' and 'extra-deps' fields defined in your stack.yaml
The current entry points to /Users/igormoreno/Documents/academic/usi/phd/luce-researchlab/structured-notional-machines/,
but no .cabal or package.yaml file could be found there.

I solved that by deleting one of the dots in the third line

@facundominguez
Copy link
Contributor

solved that by deleting one of the dots in the third line

Yeah, that looks about right. The location of packages must be relative to the location of the stack.yaml file.

when I use the configuration in stack.yaml I get:

Understanding this is going to require looking at the project files. But that stack.yaml is not meant to be used with the 9.0.2 release.

@igormoreno
Copy link

ok. Thank you.

Now with stack/stack-9.0.2.yaml I have stumbled over a problem that I found was already previously described:

that seems to be somehow in the interplay between Liquid Haskell, the haskell-language-server, and Stack.

@facundominguez
Copy link
Contributor

@igormoreno, @ranjitjhala, I'd recomend closing this issue as resolved and opening a new one for the HLS troubles if they might come from a misconfiguration in this repo.

@igormoreno
Copy link

Sure: #21

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

4 participants