0

モジュールの 1 つが Control.Monad.State を使用している独自の cabal パッケージをビルドしようとしていますが、次のエラーが発生します。

executable/Example.hs:5:8:
    Could not find module `Control.Monad.State'
    It is a member of the hidden package `mtl-2.1.2'.
    Perhaps you need to add `mtl' to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.

build-depends に mtl を追加しましたが、成功しませんでした。プロファイリング用にビルドするときに他の人が問題を抱えていることを読みましたが、mtl はそのためにビルドされていませんでしたが、プロファイリング用にビルドするべきではありません。~/.cabal/config で、library-profiling と executable-profiling の両方を明示的に False に設定しています。

私はMac OSを使用しています

4

0 に答える 0