google / proto-lens

API for protocol buffers using modern Haskell language and library patterns.
https://google.github.io/proto-lens
BSD 3-Clause "New" or "Revised" License
460 stars 110 forks source link

Not compatible with mtl-2.3 and transformers-0.6 #436

Closed ysangkok closed 2 years ago

ysangkok commented 2 years ago

Looks not to be easy because of the dependency on ghc:

% cabal build -w ghc-9.2.3 --constraint='mtl>=2.3' --constraint='transformers>=0.6' proto-lens --allow-newer=proto-lens:transformers,parsec:mtl,lens-family:mtl,lens-family:transformers,lens-family-core:transformers --minimize-conflict-set
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: proto-lens-protoc-0.7.1.1 (user goal)
[__1] trying: ghc-9.2.3/installed-9.2.3 (dependency of proto-lens-protoc)
[__2] next goal: transformers (dependency of ghc)
[__2] rejecting: transformers-0.5.6.2/installed-0.5.6.2 (constraint from
command line flag requires >=0.6)
[__2] rejecting: transformers-0.6.0.4, transformers-0.6.0.3,
transformers-0.6.0.2 (conflict: ghc =>
transformers==0.5.6.2/installed-0.5.6.2)
[__2] rejecting: transformers-0.5.6.2, transformers-0.5.5.2,
transformers-0.5.5.0, transformers-0.5.4.0, transformers-0.5.2.0,
transformers-0.5.1.0, transformers-0.5.0.1, transformers-0.5.0.0,
transformers-0.4.3.0, transformers-0.4.2.0, transformers-0.4.1.0,
transformers-0.3.0.0, transformers-0.2.2.1, transformers-0.2.1.0,
transformers-0.2.0.0, transformers-0.1.4.0, transformers-0.1.3.0,
transformers-0.1.1.0, transformers-0.1.0.1, transformers-0.0.1.0,
transformers-0.0.0.0 (constraint from command line flag requires >=0.6)
[__2] rejecting: transformers-0.6.0.1, transformers-0.6.0.0 (conflict: ghc =>
transformers==0.5.6.2/installed-0.5.6.2)
[__2] rejecting: transformers-0.5.6.1, transformers-0.5.6.0,
transformers-0.5.5.1, transformers-0.5.3.1, transformers-0.5.3.0,
transformers-0.5.0.2, transformers-0.4.0.0, transformers-0.2.2.0,
transformers-0.1.0.0 (constraint from command line flag requires >=0.6)
[__2] fail (backjumping, conflict set: ghc, transformers)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: transformers, ghc, proto-lens-protoc
blackgnezdo commented 2 years ago

Is proto-lens even a party to the conflict of ghc and transformers? Do you see any constraint in proto-lens that could be relaxed?

ysangkok commented 2 years ago

I think it is not strictly a party to this conflict, do you want me to close this?

blackgnezdo commented 2 years ago

I can do it :)