IHaskell用于新型的阴谋集团项目吗?

时间:2019-05-10 09:37:53

标签: cabal ihaskell cabal-new

通过JupyterLab使用IHaskell时,似乎仅部分支持新型的阴谋集团项目。

在阴谋集团项目的目录中创建工作簿时,IHaskell将拾取.ghc.environment文件。因此,内核所见的软件包版本与cabal所使用的完全相同。很好!

但是,其他一些事情不太顺畅:

  • 模块路径:无法导入 same 包中的模块,大概是因为IHaskell不知道cabal在哪里保存编译后的模块文件。

  • 语言扩展名:我的阴谋文件在ViewPatterns下有language-extensions,在IHaskell会话中不会自动启用。

  • 尽管仅安装了一个ihaskell软件包,但此消息显示在JupyterLab控制台上:

Disabling IHaskell widget support due to an encountered error:
The installed IHaskell support libraries do not match the instance of IHaskell you are running.
This *may* cause problems with functioning of widgets or rich media displays.
This is most often caused by multiple copies of IHaskell being installed simultaneously in your environment.
To resolve this issue, clear out your environment and reinstall IHaskell.
If you are installing support libraries, make sure you only do so once:
    # Run this without first running `stack install ihaskell`
    stack install ihaskell-diagrams
If you continue to have problems, please file an issue on Github.

是否存在解决这些问题的已知方法?

0 个答案:

没有答案