I installed Haskell on Windows with these commands:
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'))
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 ?
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",}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With