When I try to install hlint, I get errors related to old-time-1.1.0.3

At first I tried to install Hlint. cabal install hlint , but then I got the error:

 cabal: Error: some packages failed to install: cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install. haskell-src-exts-1.18.2 depends on old-time-1.1.0.3 which failed to install. hlint-1.9.37 depends on old-time-1.1.0.3 which failed to install. old-time-1.1.0.3 failed during the configure step. The exception was: ExitFailure 77 

Then I tried to install ghc-mod, since I read that hlint is a dependency of this package (?). I think that this can solve the problem. So I did cabal install ghc-mod , which gave me an error.

 cabal: Error: some packages failed to install: cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install. ghc-mod-5.6.0.0 depends on old-time-1.1.0.3 which failed to install. haskell-src-exts-1.17.1 depends on old-time-1.1.0.3 which failed to install. hlint-1.9.35 depends on old-time-1.1.0.3 which failed to install. old-time-1.1.0.3 failed during the configure step. The exception was: ExitFailure 77 

So it seems the same problem around my old-time-1.1.0.3 , and I really don't know how to solve this. Any tips?

DECISION:

Modify the cabal configuration file (you can check the location by running "cabal user-config init") to contain the following lines:

 extra-prog-path: C:\Program Files\Haskell Platform\8.0.1\msys\usr\bin extra-lib-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\lib extra-include-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\include 
+6
source share
3 answers

The best way to find out where it fails is to go through each failed package and install it one by one.

I had a problem with haskell-src-exts that appeared in hlint , and when I tried cabal install haskell-src-exts , it was happy , which was installed incorrectly.

+4
source

There are many variables that could be played to explain what is happening, including cabal-install and ghc versions. It would be helpful if you included the output of cabal --version and ghc --version in your question.

That said: I would recommend testing the installation using Stack . After installing the stack (on POSIX systems, usually sufficient to run curl -sSL https://get.haskellstack.org/ | sh ), you can install using stack --resolver lts-6.16 --install-ghc --no-system-ghc install hlint .

+2
source

Are you on Windows or Linux? What does ghc --version say? What about ghc-pkg old-time ? I recommend trying to run cabal install old-time directly, which should reproduce the error directly.

0
source

All Articles