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

How to use GHC installed by stack? #295

Closed
TonalidadeHidrica opened this issue May 30, 2021 · 2 comments
Closed

How to use GHC installed by stack? #295

TonalidadeHidrica opened this issue May 30, 2021 · 2 comments
Labels
type: question Further information is requested

Comments

@TonalidadeHidrica
Copy link

I use GHC installed via stack, since I don't want to install ghc directly. However there's no way to use stack ghc on direct mode (although there is a way to specify the arguments.) Is there a way to use stack ghc instead of ghc?

One possible way is perhaps add the path to GHC when running LS; another way may be add an additional field of hie.yaml so that we can specify the path to ghc at custom location. The most desired is to add some option to use stack ghc instead of ghc on direct mode.

@jneira
Copy link
Member

jneira commented May 30, 2021

I would think a simple stack cradle works, in theory if stack repl file works, a cradle: stack: will work 🤔

@TonalidadeHidrica
Copy link
Author

@jneira It worked, thanks!

For beginners like me, for search convenience * How to run a single file compiled with GHC? * How to run a standalone file?

@jneira jneira added the type: question Further information is requested label May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants