I have happily installed Stack, and run my code with stack ghci
or stack exec
and whatnot.
I would like to use vscode-haskell, and that requires a ghc
available in the PATH.
Is it possible to create a ghc
command available globally using stack? (e.g. some suitable commans in my powershell/bash profile)
ps. Close duplicates that did not help me are
- Using stack ghc as replacement of ghc but only talks about makefiles
- Haskell Stack doesn't use system Ghc is about making Stack use a system GHC if it is available which is not the case for me
- Haskell stack with global ghc which is close to a dupplicate of [2]