3

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 
4

1 に答える 1

4

FileManipパッケージは、Hackageで廃止されたものとしてマークされており、最後のバージョンは2010年のものです。

代わりにfilemanip(小文字)を使用してください。それはもっと最新のものでなければなりません。

また、GHCをアップグレードすることもできます。バージョン6.12.1は2009年12月のものです。

于 2012-10-27T07:21:29.067 に答える