Haskell Platform安装完成之后,按照https://www.haskell.org/platform/windows.html这个页面的步骤执行完cabal user-config init之后,在生成的config文件中已经对
extra-prog-path项有了一条默认的配置是:
extra-prog-path: C:\Users\w\AppData\Roaming\cabal\bin
而按照安装页面给出的步骤是需要对该项进行配置,这个时候就会有疑问,这个默认的配置是否要保留?是替换?还是两个都添加进去,怎么对一个配置项添加两个配置?
安装页面上有个note:
Note: cabal config files can contain more than one of each of those lines— no need to replace any existing entries. Additionally, youshould double-check that the version component of the path corresponds toyour installed platform.
说明不要替换任何已经存在的配置,并且也说了cabal的配置文件中的配置项可以包含不止一个配置值,但没有说两个配置值应该怎么分隔,搜索之后在stackoverflow中找到了相同的提问:
https://stackoverflow.com/questions/42555250/installing-haskell-on-windows-cabal-config?answertab=active#tab-top
这个问题的下面有句回答是:extra-prog-path
can be a list of paths separated by commas
到此,问题解决。