Giter VIP home page Giter VIP logo

Comments (9)

bgamari avatar bgamari commented on August 16, 2024 1

It would indeed be nice if a aeson < 2 constraint could be added to the existing versions since yaml is a pretty widely-used package and currently it's very easy to run into install plans that have no chance of building.

from yaml.

sjakobi avatar sjakobi commented on August 16, 2024 1

I think it might be sufficient to revise v0.8.5.3 and up.

And for reference: #202 contains a compatibility fix for this issue.

from yaml.

elldritch avatar elldritch commented on August 16, 2024 1

I'm running into this while trying to install various tools e.g. hpack or prune-juice.

For others who stumble across this, a temporary workaround is cabal install PACKAGE --constraint='aeson<2'.

from yaml.

sjakobi avatar sjakobi commented on August 16, 2024 1

@mouse07410 I have added some bounds for the packages you mentioned. If you run into more issues of this kind, please raise an issue on the issue tracker of the relevant package. Feel free to ping me if the package maintainers don't resolve the issue themselves.

from yaml.

sjakobi avatar sjakobi commented on August 16, 2024

Actually --allow-newer isn't even necessary to produce the error, since most yaml versions on Hackage don't have upper bounds on aeson.

from yaml.

sjakobi avatar sjakobi commented on August 16, 2024

As a Hackage trustee, I've pushed some Hackage revisions that should prevent yaml from futilely building with aeson >= 2.

If you run into similar errors with other packages, feel free to ping me or raise an issue at https://github.com/haskell-infra/hackage-trustees/issues.

from yaml.

mouse07410 avatar mouse07410 commented on August 16, 2024

@sjakobi I'm quite a novice, but it looks like with the current yaml-0.11.6.0 and its dependencies (aeson is probably the culprit), a lot of popular packages fail to build (tried GHC-9.0.1 , 8.10.7, 8.8.4, 8.6.5; cabal-3.6.2.0):

  • hoogle
  • hindent
  • hlint
  • hpack
  • can't recall others, but pretty sure I hit more than the above...

The above workaround appears effective, thanks! Is there a way to (temporarily) enforce it via global Cabal config file, e.g., ~/.cabal/config or such?

from yaml.

snoyberg avatar snoyberg commented on August 16, 2024

See #202

from yaml.

andreasabel avatar andreasabel commented on August 16, 2024

As a Hackage trustee, I've pushed some Hackage revisions that should prevent yaml from futilely building with aeson >= 2.

Me too. Some releases in the range >= 0.8.5.3 and <= 0.8.8.2 were still missing the bound aeson < 2.

from yaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.