我正在尝试通过 cabal 安装 Yesod,但安装 Data.Text 时一直失败。
我尝试使用 单独安装文本cabal install 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
查了一下下载的文本包的目录结构,发现真的没有Data/Text/Lazy/Builder/RealFloat/Functions.hs
. 最接近的是Data/Text/Lazy/Builder/Functions.hs
(但这不包含RealFloat.hs
尝试导入的函数,即roundTo
)。
我怎样才能解决这个问题?