1、官网上(https://www.haskell.org/platform/windows.html)下载Haskell Platform,最新版本为8.2.1,只支持64位,有个core版和full版,full版包含了库,就下full版试试
2、cmd下输入 "cabal user-config init",可以看到配置文件的路径,找到配置文件,添加输入
extra-prog-path: C:\Program Files\Haskell Platform\8.2.1\msys\usr\bin extra-lib-dirs: C:\Program Files\Haskell Platform\8.2.1\mingw\lib extra-include-dirs: C:\Program Files\Haskell Platform\8.2.1\mingw\include
注意安装目录换了的,后面要跟着换
3、cmd下输入ghci
4、Start WinGHCi from the Start menu and have fun!
时间: 2024-10-18 16:25:46