我使用以下命令在 Windows 上安装了 Haskell:
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'))
Run Code Online (Sandbox Code Playgroud)
choco install haskell-dev
Run Code Online (Sandbox Code Playgroud)
安装成功后,我在 VSCode 上编写代码并尝试在代码运行器的帮助下运行代码,但出现以下错误:
“runhaskell”不被识别为内部或外部命令、可操作程序或批处理文件。
如何解决这个问题呢 ?