Search code examples
macosvisual-studio-codehaskellzshghci

Bad CPU type in executable GHCI in VS Code terminal


I'm struggling with this problem: I've installed days ago all the haskell extensions in Visual Studio Code for studying it. Today I've opened the program, and when I've tried to start ghci the vs terminal says line 10: /usr/local/lib/ghc-9.6.5/bin/./ghc-9.6.5: Bad CPU type in executable, and doing it in system terminal doesn't cause any problem. Anyone knows how to fix it? :|


Solution

  • You find all versions for Download here. The best is to install it with:

    brew install ghc
    

    with

    brew install [email protected]
    

    you get you version.