-
Notifications
You must be signed in to change notification settings - Fork 47
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
Added hie.yaml, fixes HLS problems #323
Conversation
Auto generated via: > stack install implicit-hie > gen-hie > hie.yaml
I haven't used HLS, but is there any indication of why it can't work automatically and without this generated hie.yaml file? |
In my case, it seems the reason was that HLS tried to compile with cabal, which then uses my system-wide GHC. Since I don't use cabal at all, that ended up missing the packages and dependencies. So putting this file there forces HLS to use stack, and renaming stack-ghc8.8.yaml to stack.yaml sloved my HLS issues. |
Ah, thanks for the explanation. If we merge this, will cabal users get an error then? Since cabal is my primary dev tool, I'll test it out. |
I don't think so. As far as I know, this only affects HLS. |
Sorry, to clarify, if a user wants to use HLS without stack (only cabal is installed), will this hie.yaml file prevent them from using HLS? I'll test that before merging. |
Yes, in that case they would need to change line 2 to |
We could provide two versions of the hie.yaml file named stack.hie.yaml and
cabal.hie.yaml. Then, we add hie.yaml to gitignore.
This way everyone can symlink whichever version they want to use to
hie.yaml and everyone wins.
…On Mon, 1 Nov 2021 at 08:21, Farzad Bekran ***@***.***> wrote:
Yes, in that case they would need to change line 2 to cabal:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#323 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPMAW7LLXX26JWYWP3YC6DUJYPV7ANCNFSM5HBRZ5AA>
.
|
Yeah makes sense. Thanks for the suggestion. |
@agentm do you want me to close this? |
No, I intend to test this myself- I just haven't had yet time. Sorry for the delay! |
No it's allright, I thought maybe you are just being nice to me and want me to do it myself XD |
project-m36.cabal includes |
Makes sense I guess. The other day which I was trying to reach you, my HLS was acting up again. I eventually ended up changing my
Also, in my |
I added some developer-oriented documentation and two files ( |
Auto generated via:
then changed cradle type (line 2) from cabal to stack.