今朝、Eclipse FP を動作させるためにいくつかのモジュールをインストールしようとしましたが、scion-browser と buildwrapper が失敗しました。
[root@localhost ghc-mod]# cabal install scion-browser
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: scion-browser-0.3.0
[root@localhost ghc-mod]# cabal install buildwrapper
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: buildwrapper-0.8.0
私は簡単に #haskell IRC に参加しましたが、答えを得ることができませんでしたが、IRC で長くぶらぶらしていませんでした。それから私はEclipseFPをあきらめ、vimで陽気な道を歩みました。以前に他の言語でvimを使用したことがあり、デバッガーがなくても大丈夫だと思いました。しかし、好奇心に駆られて、haskell でのコーディング経験を強化できるいくつかのプラグインをインストールしましたが、プラグインの 1 つには ghc-mod が必要だったので、もう一度やってみようと思いcabal install
ました。私は次のエラーで終わった。
[root@localhost ghc-mod]# cabal install ghc-mod
Resolving dependencies...
Configuring ghc-mod-0.3.0...
Building ghc-mod-0.3.0...
Preprocessing executable 'ghc-mod' for ghc-mod-0.3.0...
[1 of 6] Compiling Param ( Param.hs, dist/build/ghc-mod/ghc-mod-tmp/Param.o )
[2 of 6] Compiling Lang ( Lang.hs, dist/build/ghc-mod/ghc-mod-tmp/Lang.o )
[3 of 6] Compiling List ( List.hs, dist/build/ghc-mod/ghc-mod-tmp/List.o )
[4 of 6] Compiling Check ( Check.hs, dist/build/ghc-mod/ghc-mod-tmp/Check.o )
[5 of 6] Compiling Browse ( Browse.hs, dist/build/ghc-mod/ghc-mod-tmp/Browse.o )
Browse.hs:41:72:
Not in scope: data constructor `ExplicitForall'
Perhaps you meant `ExplicitForAll' (imported from Language.Haskell.Exts.Extension)
Failed to install ghc-mod-0.3.0
cabal: Error: some packages failed to install:
ghc-mod-0.3.0 failed during the building phase. The exception was:
ExitFailure 1
プロジェクトを複製して実行しようとcabal install
したところ、次の結果になりました。
[root@localhost ghc-mod]# cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: ghc-mod-4.1.0
この問題の真相を突き止めたいと思います。カバルがどこで失敗しているのか正確にはわからないので、どの依存関係について不平を言っているのかを正確に見つけるのは本当に難しい. ちなみに以下はcabalとghcのバージョンです。
[root@localhost ghc-mod]# cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
[root@localhost ghc-mod]#
[root@localhost ghc-mod]# ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
cabal からのエラー メッセージを理解するのを手伝ってくれる人はいますか? 私は比較的 haskell に慣れていないので、些細な点を見逃していたら申し訳ありません。