haskell - My installed transformers version is not considered by cabal-install -


i totally new haskell cabal , i'm trying make yesod work.

my cabal version cabal-install version 1.20.0.3 using version 1.20.0.2 of cabal library

this happends when tru install alex:

$ cabal install alex resolving dependencies... cabal: not resolve dependencies: trying: alex-3.1.4 (user goal) next goal: quickcheck (dependency of alex-3.1.4) rejecting: quickcheck-2.8.1, 2.8 (global constraint requires ==2.7.6) trying: quickcheck-2.7.6 next goal: transformers (dependency of quickcheck-2.7.6) rejecting: transformers-0.4.3.0, 0.4.2.0, 0.4.1.0, 0.3.0.0, 0.2.2.1, 0.2.2.0, 0.2.1.0, 0.2.0.0, 0.1.4.0, 0.1.3.0, 0.1.1.0, 0.1.0.1, 0.1.0.0, 0.0.1.0, 0.0.0.0, 0.4.0.0 (global constraint requires installed instance) dependency tree exhaustively searched. 

second attempt:

$ cabal install alex happy yesod-bin --allow-newer resolving dependencies... cabal: not resolve dependencies: trying: alex-3.1.4 (user goal) trying: quickcheck-2.7.6/installed-1a8... (dependency of alex-3.1.4) trying: tf-random-0.5/installed-ef3... (dependency of quickcheck-2.7.6/installed-1a8...) next goal: primitive (dependency of tf-random-0.5/installed-ef3...) rejecting: primitive-0.5.0.1/installed-8e5... (global constraint requires ==0.6) rejecting: primitive-0.6 (conflict: tf-random => primitive==0.5.0.1/installed-8e5...) rejecting: primitive-0.5.4.0, 0.5.3.0, 0.5.2.1, 0.5.1.0, 0.5.0.1, 0.5, 0.4.1, 0.4.0.1, 0.4, 0.3.1, 0.3, 0.2.1, 0.2, 0.1 (global constraint requires ==0.6) dependency tree exhaustively searched. 

what have install alex?

a related question one: cabal install --- global constraint requires installed instance

the comment @kosmikus on question is:

so stackage lts config file contains constraint transformers installed, meaning present version of transformers can used. reasonable, because ghc ships specific version of transformers. ghc-7.8, transformers-0.3.0.0. reason, installed version not considered cabal-install. partial log doesn't contain sufficient info see why.

how can fix stackage lts config file? on ubuntu?

try cabal install alex --allow-newer


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -