Error installing hspec

I try to install hspec, but I get the following:

$ cabal install hspec Resolving dependencies... cabal: dependencies conflict: ghc-7.2.2 requires containers ==0.4.2.0 however containers-0.4.2.0 was excluded because ghc-7.2.2 requires containers ==0.4.1.0 

What does it mean?

Also using ghc 7.2.2, cabal 10.2.

+6
source share
1 answer

It looks like you somehow violated the installation of the GHC. GHC 7.2.2 comes with container-0.4.1.0 (which version is the same as for GHC 7.2.1). Perhaps this can be fixed, but if the global installation of the package is violated, then it will probably be easiest to reinstall GHC.

What does ghc-pkg list containers say?

If containers-0.4.2.2 is only in the installation for each user (i.e. the output of /home/clark/.ghc/${arch}-${os}-7.2.2/package.conf.d ), then rm 'ing /home/clark/.ghc/ and reinstalling all the packages you installed with cabal install will fix this.

+2
source

Source: https://habr.com/ru/post/908072/


All Articles