在Windows上安装Haskell,cabal配置 [英] Installing Haskell on Windows, cabal config

查看:106
本文介绍了在Windows上安装Haskell,cabal配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我根据 https://www.haskell.org/上的说明在Windows上安装Haskell。平台/ ,看第3步,它说,修改你的cabal配置文件(你可以通过运行cabal user-config init来验证位置)包含以下行:

I'm installing Haskell on Windows based on the instructions at https://www.haskell.org/platform/ and looking at step 3, it says, Modify your cabal config file (you can verify the location by running "cabal user-config init") to contain the following lines:

extra-prog-path: C:\Program Files\Haskell Platform\8.0.2\msys\usr\bin
extra-lib-dirs: C:\Program Files\Haskell Platform\8.0.2\mingw\lib
extra-include-dirs: C:\Program Files\Haskell Platform\8.0.2\mingw\include

但是自动生成的配置文件包含例如

But the auto generated config file contains e.g.

extra-prog-path: C:\Users\w\AppData\Roaming\cabal\bin

所以对于一个建议的变量来说这是一个不同的值。

So that's a different value for one of the suggested variables.

这是故意的吗?

我应该怎么做,将第3步中的行粘贴到文件的开头,文件的结尾,覆盖现有的行或者完全跳过第3步?

What should I do, paste the lines from step 3 at the start of the file, the end of the file, overwrite the existing lines or skip step 3 altogether?

推荐答案

您不需要覆盖现有的行。你可以有多个 extra-prog-path 条目,它们都可以使用。

You don't need to overwrite existing lines. You can have multiple extra-prog-path entries and they all get used.

这篇关于在Windows上安装Haskell,cabal配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆