cabal - IHaskell 用于新型阴谋集团项目?
问题描述
通过 JupyterLab 使用 IHaskell 时,似乎只有部分支持新型 cabal 项目。
在 cabal 项目的目录中创建工作簿时,IHaskell 会选择该.ghc.environment
文件。所以内核看到的包版本与 cabal 使用的完全相同。好的!
但是,其他一些事情不太顺利:
模块路径:无法导入来自同一个cabal 包的模块,大概是因为 IHaskell 不知道 cabal 将编译后的模块文件保存在哪里。
语言扩展:我的 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.
这些问题是否有任何已知的解决方法?
解决方案
推荐阅读
- python-3.x - 在 anaconda 中找不到 pptk 的匹配分布
- typescript - "{text, comp} 的打字稿含义:NavProps & Comp
“? - spring-boot - Spring Boot Property Launcher + EhCache 无法读取架构文档
- visual-studio-code - 如何在 VS Code 中使用 ctrl+k 作为快捷方式,而不是作为和弦的开头?
- jenkins - 使用 Jenkins 在多个 Unix 服务器中执行相同的命令
- c - 为什么我的树莓派的串口不可写?write() 写入零字节。select() 超时
- java - 使用套接字从python到Android交换数据时的垃圾值
- javascript - 在网页中与 timeonsitetracker.js API 集成时如何获取实时“timeonsite”参数?
- mysql - 将 MySQL 数据库函数 (?) 与 SQLite (Node.js) 一起使用
- node.js - this._verify 不是登录功能