bravit / hid-examples

Examples to accompany the book "Haskell in Depth"
BSD 3-Clause "New" or "Revised" License
257 stars 93 forks source link

cabal dependency issues #19

Open voidzero opened 2 months ago

voidzero commented 2 months ago

What can I do about the following issue? How should I read it, even?

$ cabal --minimize-conflict-set run vocab1 -- data/texts/hamlet.txt
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: hid-examples-0.5 (user goal)
[__1] next goal: singletons-base (dependency of hid-examples)
[__1] rejecting: singletons-base-3.4 (conflict: hid-examples =>
singletons-base>=3.0 && <3.4)
[__1] trying: singletons-base-3.3
[__2] next goal: th-desugar (dependency of singletons-base)
[__2] rejecting: th-desugar-1.17 (conflict: singletons-base =>
th-desugar>=1.16 && <1.17)
[__2] trying: th-desugar-1.16
[__3] next goal: th-abstraction (dependency of th-desugar)
[__3] rejecting: th-abstraction-0.5.0.0/installed-HAFjiAO2nGN58SdxVZCnLH
(conflict: th-desugar => th-abstraction>=0.6 && <0.8)
[__3] trying: th-abstraction-0.7.0.0
[__4] next goal: streaming-utils (dependency of hid-examples)
[__4] rejecting: streaming-utils-0.2.5.0, streaming-utils-0.2.4.0,
streaming-utils-0.2.3.0, streaming-utils-0.2.2.0, streaming-utils-0.2.1.0
(conflict: pkg-config package zlib-any, not found in the pkg-config database)
[__4] trying: streaming-utils-0.2.0.0
[__5] trying: servant-server-0.20.2 (dependency of hid-examples)
[__6] next goal: aeson (dependency of hid-examples)
[__6] rejecting: aeson-2.1.2.1/installed-B6SRSQXTctcEYV8oGyolai (conflict:
streaming-utils => aeson>0.8 && <1.6)
[__6] skipping: aeson-2.2.3.0, aeson-2.2.2.0, aeson-2.2.1.0, aeson-2.2.0.0,
aeson-2.1.2.1, aeson-2.1.2.0, aeson-2.1.1.0, aeson-2.1.0.0, aeson-2.0.3.0,
aeson-2.0.2.0, aeson-2.0.1.0, aeson-2.0.0.0 (has the same characteristics that
caused the previous version to fail: excluded by constraint '>0.8 && <1.6'
from 'streaming-utils')
[__6] rejecting: aeson-1.5.6.0 (conflict: th-abstraction==0.7.0.0, aeson =>
th-abstraction>=0.2.8.0 && <0.5)
[__6] skipping: aeson-1.5.5.1, aeson-1.5.5.0, aeson-1.5.4.1, aeson-1.5.4.0,
aeson-1.5.3.0, aeson-1.5.2.0, aeson-1.5.1.0, aeson-1.5.0.0, aeson-1.4.7.1,
aeson-1.4.7.0, aeson-1.4.6.0, aeson-1.4.5.0, aeson-1.4.4.0, aeson-1.4.3.0,
aeson-1.4.2.0, aeson-1.4.1.0, aeson-1.4.0.0, aeson-1.3.1.1, aeson-1.3.1.0,
aeson-1.3.0.0, aeson-1.2.4.0, aeson-1.2.3.0, aeson-1.2.2.0 (has the same
characteristics that caused the previous version to fail: excludes
'th-abstraction' version 0.7.0.0)
[__6] rejecting: aeson-1.2.1.0 (conflict: servant-server => aeson>=1.4.1.0 &&
<3)
[__6] skipping: aeson-1.2.0.0, aeson-1.1.2.0, aeson-1.1.1.0, aeson-1.1.0.0,
aeson-1.0.2.1, aeson-1.0.2.0, aeson-1.0.1.0, aeson-1.0.0.0, aeson-0.11.3.0,
aeson-0.11.2.1, aeson-0.11.2.0, aeson-0.11.1.4, aeson-0.11.1.3,
aeson-0.11.1.2, aeson-0.11.1.1, aeson-0.11.1.0, aeson-0.11.0.0, aeson-0.9.0.1,
aeson-0.9.0.0, aeson-0.8.1.1, aeson-0.8.1.0, aeson-0.8.0.2, aeson-0.7.0.6,
aeson-0.7.0.4, aeson-0.6.2.1, aeson-0.6.2.0, aeson-0.6.1.0, aeson-0.6.0.2,
aeson-0.6.0.1, aeson-0.6.0.0, aeson-0.5.0.0, aeson-0.4.0.1, aeson-0.4.0.0,
aeson-0.3.2.14, aeson-0.3.2.13, aeson-0.3.2.12, aeson-0.3.2.11,
aeson-0.3.2.10, aeson-0.3.2.9, aeson-0.3.2.8, aeson-0.3.2.7, aeson-0.3.2.6,
aeson-0.3.2.5, aeson-0.3.2.4, aeson-0.3.2.3, aeson-0.3.2.2, aeson-0.3.2.1,
aeson-0.3.2.0, aeson-0.3.1.1, aeson-0.3.1.0, aeson-0.3.0.0, aeson-0.2.0.0,
aeson-0.1.0.0, aeson-0.10.0.0, aeson-0.8.0.1, aeson-0.8.0.0, aeson-0.7.0.5,
aeson-0.7.0.3, aeson-0.7.0.2, aeson-0.7.0.1, aeson-0.7.0.0 (has the same
characteristics that caused the previous version to fail: excluded by
constraint '>=1.4.1.0 && <3' from 'servant-server')
[__6] fail (backjumping, conflict set: aeson, hid-examples, servant-server,
streaming-utils, th-abstraction)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, aeson, th-abstraction,
servant-server, hid-examples, th-desugar, singletons-base, streaming-utils

Hope you can help. Thanks.

bravit commented 2 months ago

Hi @voidzero! I've updated the dependencies. Unfortunately there's still an issue with the streaming-utils package, so not every example can be built. Anyway, cabal run vocab1 -- data/texts/hamlet.txt should work, I believe.