1

I get following error in VSCode:

enter image description here

However, when I run this command in shell manually it works fine:

% stack --stack-yaml /home/user/haskell/h5/stack.yaml exec ghc -- --numeric-version
9.8.2

My stack.yaml is minimal:

% cat stack.yaml  | grep -v '^\s*#'

snapshot: ghc-9.8.2

packages:
- .
1
  • Your VS Code command error doesn't have the actual version number you want to call, 9.8.2. Also, another possibility, do you have system-ghc: true in your yaml? Lastly, I've more commonly seen resolver: ghc-9.8.2 than snapshot. Not sure any of this will work, so just making a comment. Commented Jul 2 at 1:09

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.