Yesod安装失败(即文本包)

发布于 2024-11-13 16:38:16 字数 792 浏览 3 评论 0原文

我尝试通过 cabal 安装 Yesod,但安装 Data.Text 时总是失败。

我尝试用cabal install text单独安装text,结果出现错误信息:

Resolving dependencies...
Configuring text-0.11.1.0...
Preprocessing library text-0.11.1.0...
Building text-0.11.1.0...

Data/Text/Lazy/Builder/RealFloat.hs:21:7:
    Could not find module `Data.Text.Lazy.Builder.RealFloat.Functions':
      Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
text-0.11.1.0 failed during the building phase. The exception was:
ExitFailure 1

调查下载的text包的目录结构,发现确实没有Data/Text/Lazy /Builder/RealFloat/Functions.hs。最接近的是 Data/Text/Lazy/Builder/Functions.hs (但这不包含 RealFloat.hs 试图导入的函数,该函数是 >roundTo)。

我该如何解决这个问题?

I'm trying to install Yesod via cabal, but it keeps failing on installing Data.Text.

I tried installing text separately with cabal install text, resulting in an error message:

Resolving dependencies...
Configuring text-0.11.1.0...
Preprocessing library text-0.11.1.0...
Building text-0.11.1.0...

Data/Text/Lazy/Builder/RealFloat.hs:21:7:
    Could not find module `Data.Text.Lazy.Builder.RealFloat.Functions':
      Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
text-0.11.1.0 failed during the building phase. The exception was:
ExitFailure 1

Investigating the directory structure of the text package that was downloaded, I find that there really is no Data/Text/Lazy/Builder/RealFloat/Functions.hs. The closest thing is Data/Text/Lazy/Builder/Functions.hs (but this doesn't contain the function RealFloat.hs was trying to import, which was roundTo).

How can I fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

森林迷了鹿 2024-11-20 16:38:16

这是一个 ghc7.0 相关问题(并在“Build”下的 hackage 中列出失败”)。尝试安装适用于 yesod 的 text-0.11.0.8 。

This is a ghc7.0 related issue (and listed at hackage under "Build failure"). Try to install text-0.11.0.8 that should work for yesod.

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