ucsd-progsys / lh-plugin-demo

A small package that demonstrates how to use LiquidHaskell as a GHC plugin
BSD 3-Clause "New" or "Revised" License
23 stars 15 forks source link

Stack information out of date? #6

Open FranklinChen opened 2 years ago

FranklinChen commented 2 years ago

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 commented 2 years ago

Interesting! Did you try changing the line

compiler: ghc-8.10.2

to

compiler: ghc-8.10.7

Does that work?

On Fri, May 13, 2022 at 11:33 AM Franklin Chen @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ucsd-2Dprogsys_lh-2Dplugin-2Ddemo_issues_6&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=r3JfTqNkpwIJ1InE9-ChC2ld7xwATxgUx5XHAdA0UnA&m=QQHfzg9TbkJHd-Rf8ZBPc6EoSAwYr5Ahk8Dh8sBu9Ho2GKh2_nY2Q83f9hZ_l3iO&s=wHMj94tESGIHl4LboUtKgi7cLQM6y3fOidjMbsWJnek&e=, or unsubscribe https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAMS4OCU6LY2EKMUGTGPTNTVJ2OAJANCNFSM5V4E3VVQ&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=r3JfTqNkpwIJ1InE9-ChC2ld7xwATxgUx5XHAdA0UnA&m=QQHfzg9TbkJHd-Rf8ZBPc6EoSAwYr5Ahk8Dh8sBu9Ho2GKh2_nY2Q83f9hZ_l3iO&s=sMD1iff93XwU0ggdU_hxC5TH_AyDiYFc9Qx19DxXO1c&e= . You are receiving this because you are subscribed to this thread.Message ID: @.***>

FranklinChen commented 2 years ago

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

facundominguez commented 1 year ago

The configuration has been updated in #14

igormoreno commented 1 year ago

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

facundominguez commented 1 year ago

Hello! I added a configuration example here: https://github.com/ucsd-progsys/lh-plugin-demo/pull/19

Search for stack/stack-9.0.2.yaml.

igormoreno commented 1 year ago

wow! that was fast :-) thank you

I'm finding a couple of problems though:

facundominguez commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

Sure: https://github.com/ucsd-progsys/lh-plugin-demo/issues/21