Yesod安装失败(即文本包)
我尝试通过 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个 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.