haskell - 安装 System.FilePath.Find 时遇到问题

标签 haskell cabal

我要安装System.FilePath.Find模块。我尝试使用

cabal install FileManip

但失败了:

Resolving dependencies...
Configuring FileManip-0.3.3.1...
Preprocessing library FileManip-0.3.3.1...
Building FileManip-0.3.3.1...
[1 of 5] Compiling System.FilePath.Error ( System/FilePath/Error.hs, dist/build/System/FilePath/Error.o )
[2 of 5] Compiling System.FilePath.Manip ( System/FilePath/Manip.hs, dist/build/System/FilePath/Manip.o )
[3 of 5] Compiling System.FilePath.GlobPattern ( System/FilePath/GlobPattern.hs, dist/build/System/FilePath/GlobPattern.o )
[4 of 5] Compiling System.FilePath.Glob ( System/FilePath/Glob.hs, dist/build/System/FilePath/Glob.o )
[5 of 5] Compiling System.FilePath.Find ( System/FilePath/Find.hs, dist/build/System/FilePath/Find.o )

System/FilePath/Find.hs:174:20:
    Not in scope: data constructor `State'
cabal: Error: some packages failed to install:
FileManip-0.3.3.1 failed during the building phase. The exception was:
ExitFailure 1

我做错了什么?

$  ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.1
$  cabal --version
cabal-install version 0.8.0
using version 1.8.0.2 of the Cabal library 

最佳答案

FileManip 软件包在 Hackage 上被标记为已过时,最后一个版本是 2010 年。

使用filemanip (小写)代替。它应该是最新的。

您可能还想升级您的 GHC。版本 6.12.1 是从 2009 年 12 月开始的。

关于haskell - 安装 System.FilePath.Find 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13098012/

相关文章:

haskell - 如何在 Haskell 平台中降级 cabal 版本?

haskell - 使用 cabal 和 ghc 构建运行时标志

haskell - GHC 源代码 "zonk"是什么意思?

haskell - Haskell Num 类和我的类似表演的类之间存在歧义

haskell - 删除 Stack/Cabal 软件包并安装旧版本

cabal - idris cabal 安装失败。 "The following packages are likely to be broken by the reinstalls"

haskell - 如何使用 cabal(工具)或堆栈创建应用程序的二进制分发

haskell - 为什么每秒两次读取一个不断变化的文件会给出相同的值?

scala - 是否可以在 Haskell 中提供自定义模式分解?

haskell - 重写规则的干净方法