From the Stack FAQ, emphasis mine:如果您希望堆栈使用您的系统GHC安装,请使用--system-ghc标志或运行stack config set system-ghc --global true来使堆栈在默认情况下检查您的PATH以查找合适的GHC.If you would like stack to use your system GHC installation, use the --system-ghc flag or run stack config set system-ghc --global true to make stack check your PATH for a suitable GHC by default.请注意,堆栈只能在其版本与当前项目的配置兼容的情况下使用系统GHC安装,尤其是resolver设置.Note that stack can only use a system GHC installation if its version is compatible with the configuration of the current project, particularly the resolver setting. 这篇关于Haskell Stack不使用系统Ghc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-03 06:05