cabal安装后如何启动Yi-editor?
我关注了 HaskellWiki,但我仍然不知道如何开始它。
我尝试过:
yi
ghci yi
import Yi
main
I followed HaskellWiki, but I've still have no idea that how to start it.
I've tried:
yi
ghci yi
import Yi
main
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要将
$HOME/.cabal/bin
添加到您的PATH
变量:如果
yi
之后仍然失败(或者通过显式调用就像~/.cabal/bin/yi
),那么它要么安装失败,要么至少应该打印出相关的错误消息,这可以进一步提供帮助。请注意,据我了解,Yi 自 2009 年左右以来的发展一直是零星的;如果您不只是出于好奇而尝试 Yi,您可能需要考虑使用 haskell-mode 的 Emacs 或其他编辑器。
You might need to add
$HOME/.cabal/bin
to yourPATH
variable:If
yi
still fails after that (or with an explicit invocation like~/.cabal/bin/yi
), then it either failed to install, or should at least print out a relevant error message which could help further.Note that, to my understanding, Yi's development since 2009 or so has been sporadic; you might want to consider Emacs with haskell-mode or another editor if you're not just trying Yi out of curiosity.
我使用的是 MacOS,当我使用终端命令安装 yi 时,我得到以下反馈:
所以我可以运行它
Users/calvin/Library/Haskell/ghc-7.6.3/lib/yi-0.7.0/bin
。I'm using MacOS and when I install yi using terminal command I get the following feedback:
So I could run it in
Users/calvin/Library/Haskell/ghc-7.6.3/lib/yi-0.7.0/bin
.