cabal安装后如何启动Yi-editor?

发布于 2024-12-21 15:45:55 字数 138 浏览 4 评论 0原文

我关注了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

扎心 2024-12-28 15:45:55

您可能需要将 $HOME/.cabal/bin 添加到您的 PATH 变量:

export PATH="$HOME/.cabal/bin:$PATH"

如果 yi 之后仍然失败(或者通过显式调用就像~/.cabal/bin/yi),那么它要么安装失败,要么至少应该打印出相关的错误消息,这可以进一步提供帮助。

请注意,据我了解,Yi 自 2009 年左右以来的发展一直是零星的;如果您不只是出于好奇而尝试 Yi,您可能需要考虑使用 haskell-mode 的 Emacs 或其他编辑器。

You might need to add $HOME/.cabal/bin to your PATH variable:

export PATH="$HOME/.cabal/bin:$PATH"

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.

z祗昰~ 2024-12-28 15:45:55

我使用的是 MacOS,当我使用终端命令安装 yi 时,我得到以下反馈:

安装库

/Users/calvin/Library/Haskell/ghc-7.6.3/lib/yi-0.7.0/lib 安装

可执行文件

/Users/calvin/Library/Haskell/ghc-7.6.3/lib/yi-0.7.0/bin 注册

yi-0.7.0...已安装yi-0.7.0

所以我可以运行它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:

Installing library in

/Users/calvin/Library/Haskell/ghc-7.6.3/lib/yi-0.7.0/lib Installing

executable(s) in

/Users/calvin/Library/Haskell/ghc-7.6.3/lib/yi-0.7.0/bin Registering

yi-0.7.0... Installed yi-0.7.0

So I could run it in Users/calvin/Library/Haskell/ghc-7.6.3/lib/yi-0.7.0/bin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文