jfeltz / dash-haskell

dash docset builder for Haskell packages and cabal project dependencies
GNU Lesser General Public License v3.0
79 stars 12 forks source link

cabal cannot currently resolve the dependencies #10

Closed ianthehenry closed 9 years ago

ianthehenry commented 9 years ago

When I try to install from hackage or do clean build after cloning, I get this:

~/src/dash-haskell ➜ cabal-install -j --only-dependencies
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: dash-haskell-1.0.0.3 (user goal)
trying: transformers-0.3.0.0/installed-7df... (dependency of
dash-haskell-1.0.0.3)
trying: optparse-applicative-0.11.0.1 (dependency of dash-haskell-1.0.0.3)
trying: transformers-compat-0.3.3.4 (dependency of
optparse-applicative-0.11.0.1)
trying: transformers-compat-0.3.3.4:-two
rejecting: transformers-compat-0.3.3.4:-three (conflict:
transformers==0.3.0.0/installed-7df..., transformers-compat-0.3.3.4:three =>
transformers>=0.4.1 && <0.5)
rejecting: transformers-compat-0.3.3.4:+three (manual flag can only be changed
explicitly)
Dependency tree exhaustively searched.
ianthehenry commented 9 years ago

I got it building by randomly futzing with the cabal file until it worked:

  build-depends:       Cabal
                     , base
                     , bytestring           >= 0.10.0.1
                     , containers           >= 0.5.5.1
                     , direct-sqlite        >= 2.3.13
                     , directory            >= 1.2.1.0
                     , either               == 4.3
                     , ghc
                     , mtl                  == 2.1.3.1
                     , optparse-applicative >= 0.11.0 && <= 0.11.1
                     , pipes                == 4.1.0
                     , process              == 1.2.0.0
                     , sqlite-simple        == 0.4.5.0
                     , system-fileio        >= 0.3.12 && < 0.4.0
                     , system-filepath      >= 0.3.1 && < 0.5
                     , tagsoup              == 0.12.7
                     , text                 >= 0.7.1
                     , transformers         >= 0.3 && < 0.5
                     , parsec               == 3.1.5
                     , haddock-api          == 2.15.0

But... I'm sure there's a much simpler resolution that I didn't see.

It might be more appropriate to cabal freeze, since this will generally be installed as an executable and not something linked into another project.

Thank you for making this. I looked for this a long time ago and was very sad that it didn't exist. Now I am very happy that it does. :)

ianthehenry commented 9 years ago

Umm. I'm just dumb. My computer was running ghc 7.8.2. After upgrading to 7.8.3 it works out of the box. Error messages, amirite?

It appears to work fine from my very little testing with the 7.8.2-built version, but I understand not wanting to support that.