-
Notifications
You must be signed in to change notification settings - Fork 63
Guide: Fixing GHC version errors
Łukasz Czajka edited this page Nov 6, 2024
·
1 revision
VSCode Haskell extension might produce error and warning messages such as
Failed to find the GHC version of this Cabal project. Error when calling cabal exec -v0 -- ghc --print-libdir
and
I had trouble figuring out the exact GHC version for the project. Falling back to using 'ghc'.
while working on Juvix development.
These might stem from Cabal/Haskell version issues as well as the use of hie.yaml file through stack. Here is a quick guide how to fix these:
-
Set the
HaskellandCabalversions to the relevant ones used by the Juvix team viaghcup tui -
Copy the
stack.hie.yamlfile, paste it in the same folder while renaming it tohie.yaml. -
Reload window