dpwright / HaskellNet-SSL

Helpers to connect to SSL/TLS mail servers with HaskellNet
BSD 3-Clause "New" or "Revised" License
21 stars 30 forks source link

Cabal dependencies #3

Closed jabolopes closed 10 years ago

jabolopes commented 10 years ago

Hi,

I'm running into a dependency problem and I can't seem to be able to install HaskellNet-SSL. Below you can find the output from cabal install. I think the problem can be solved if HaskellNet-SSL did not depend on tls-extra (which has been deprecated in favor of tls), but it depended on the latest version of tls.

What do you think?

Resolving dependencies... cabal: Could not resolve dependencies: trying: HaskellNet-SSL-0.2.1 (user goal) trying: connection-0.2.0 (dependency of HaskellNet-SSL-0.2.1) trying: tls-extra-0.6.6 (dependency of HaskellNet-SSL-0.2.1) next goal: tls (dependency of HaskellNet-SSL-0.2.1) rejecting: tls-1.2.2, 1.2.1, 1.2.0 (conflict: tls-extra => tls>=1.1.0 && <1.2.0) rejecting: tls-1.1.5, 1.1.4, 1.1.3, 1.1.2 (conflict: connection => tls>=1.2) rejecting: tls-1.1.1, 1.1.0, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 0.9.11, 0.9.10, 0.9.9, 0.9.8, 0.9.7, 0.9.6, 0.9.5, 0.9.4, 0.9.3, 0.9.2, 0.9.1, 0.9.0, 0.8.5, 0.8.4, 0.8.3.2, 0.8.3.1, 0.8.3, 0.8.2, 0.8.1, 0.8.0, 0.7.2, 0.7.1, 0.7.0, 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6.0, 0.5.1, 0.5.0, 0.4.1, 0.4.0, 0.3.3, 0.3.2, 0.3.1, 0.3, 0.2, 0.1.3, 0.1.2, 0.1.1, 0.1 (conflict: HaskellNet-SSL => tls>=1.1.2) Backjump limit reached (change with --max-backjumps).

Note: when using a sandbox, all packages are required to have consistent dependencies. Try reinstalling/unregistering the offending packages or recreating the sandbox.

dpwright commented 10 years ago

You're right! I didn't spot that this dependency was unnecessary. I have removed it, and also changed the other dependencies to be a bit more lenient since 0.2.1. I just uploaded the latest package to Hackage, so please have another go and let me know if it works.

I'm quite new to the black art of managing cabal dependencies, so if you have any more problems please just give me a shout and I'll try and resolve them. Thanks!

jabolopes commented 10 years ago

It worked like a charm. Thanks a lot for the quick fix. You are right, managing cabal dependencies is quite a black art :)