Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'runhaskell' is not recognized as an internal or external command, operable program or batch file

I installed Haskell on Windows with these commands:

  1. Set-ExecutionPolicy Bypass -Scope Process -Force; 
    [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
    iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    
  2. choco install haskell-dev
    

After install successfully I write the code on VSCode and try to run the code with the help of code runner it gives me this error:

'runhaskell' is not recognized as an internal or external command, operable program or batch file.

How to solve this problem ?

like image 877
hussamsindhu Avatar asked Dec 13 '22 07:12

hussamsindhu


1 Answers

ghc --version 9.0.1 did not have runhaskell.If you want to run your code in vs code through coderunner than go into vs code setting->coderunner->setting.jason in "code-runner.executorMap" write "runghc" instead of "runhaskell" like "code-runner.executorMap": {"haskell": "runghc",}

like image 168
hussamsindhu Avatar answered Dec 15 '22 21:12

hussamsindhu