我正在尝试通过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
)。
我该如何解决这个问题?