osx - Haskell cabal issue with Mac OS X 10.11? (cannot satisfy -package-id) -


i used latest haskell platform 7.10.2-a (https://www.haskell.org/platform/mac.html) on mac os x 10.11 el-capitan.

when tried install yesod cabal install yesod, have multiple error messages such as:

building email-validate-2.1.3... building http-api-data-0.2.1... building fast-logger-2.4.1... building http-date-0.0.6.1... failed install crypto-random-0.0.9 build log ( /users/smcho/.cabal/logs/crypto-random-0.0.9.log ): configuring crypto-random-0.0.9... building crypto-random-0.0.9... preprocessing library crypto-random-0.0.9... <command line>: cannot satisfy -package-id vector-0.11.0.0-730f99979d41c11c3a1ef069844b5f57     (use -v more information) failed install email-validate-2.1.3 build log ( /users/smcho/.cabal/logs/email-validate-2.1.3.log ): configuring email-validate-2.1.3... 

the error pattern pretty same: cannot satisfy -package-id.

for example, cabal install aeson gives cannot satisfy -package-id attoparse... error.

resolving dependencies... configuring aeson-0.10.0.0... building aeson-0.10.0.0... failed install aeson-0.10.0.0 build log ( /users/smcho/.cabal/logs/aeson-0.10.0.0.log ): configuring aeson-0.10.0.0... building aeson-0.10.0.0... preprocessing library aeson-0.10.0.0... <command line>: cannot satisfy -package-id attoparsec-0.13.0.1-99b4df28644e63383f308c810764a8bb     (use -v more information) cabal: error: packages failed install: aeson-0.10.0.0 failed during building phase. exception was: exitfailure 1 

however, attoparsec library seems installed without problem.

smcho@macho ~> cabal install attoparsec resolving dependencies... requested packages installed: attoparsec-0.13.0.1 use --reinstall if want reinstall anyway. 

what might wrong?

this might controversial, imho haskell platform , cabal (when used directly) both deprecated advent of stack.

stack will:

  1. automatically install haskell (stack setup)
  2. automatically sandbox (and intelligently share sandboxes between projects)
  3. completely avoid cabal hell (in experience)

Comments

Popular posts from this blog

Python Pandas join aggregated tables -

java - Static nested class instance -

process - Python What is the difference between a Pool of worker processes and just running multiple Processes? -