global GHC from Stack?

Viewed 268

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

  1. Using stack ghc as replacement of ghc but only talks about makefiles
  2. 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
  3. Haskell stack with global ghc which is close to a dupplicate of [2]
0 Answers
Related