Coder Social home page Coder Social logo

Comments (10)

Ericson2314 avatar Ericson2314 commented on August 23, 2024

Could we revise it to make the bootstrap flag on by default? If so, that should also make it succeed.

from happy.

simonmichael avatar simonmichael commented on August 23, 2024

I'd welcome either of these. The release of happy 1.21 broke my CI, and it wasn't too easy to discover the cause.

from happy.

Ericson2314 avatar Ericson2314 commented on August 23, 2024

Errors

Cannot change the default of a manual flag

No dice

from happy.

int-index avatar int-index commented on August 23, 2024

The bootstrap build does not support all features, so that might have broken some builds as well. What about the base < 0 trick, would it work?

My understanding is that cabal won’t pick happy-1.21.0 anyway because it’s marked as deprecated, and the remaining build problems are from stack users.

from happy.

andreasabel avatar andreasabel commented on August 23, 2024

What about the base < 0 trick, would it work?

Yes, this would make the happy-1.21.0 unbuildable, and prune it from the cabal constraint solving process.
This was my suggestion.
Seems like changing the flag value would warrant a release of 1.21.0.1 or 1.21.1.

from happy.

int-index avatar int-index commented on August 23, 2024

Yes, this would make the happy-1.21.0 unbuildable, and prune it from the cabal constraint solving process.

But it’s marked as deprecated, shouldn’t it already be pruned?

from happy.

andreasabel avatar andreasabel commented on August 23, 2024

There are exceptions:

If all the available versions of a package are non-preferred or deprecated, cabal-install will treat this the same as if none of them are.

Btw, it does install fine:

$ cabal install happy-1.21.0
Resolving dependencies...
Build profile: -w ghc-9.2.1 -O1
In order, the following will be built (use -v for more details):
 - happy-1.21.0 (exe:happy) (requires build)
Configuring executable 'happy' for happy-1.21.0..
Preprocessing executable 'happy' for happy-1.21.0..
Building executable 'happy' for happy-1.21.0..
[ 1 of 23] Compiling AbsSyn      
((SUCCEEDS))

from happy.

phadej avatar phadej commented on August 23, 2024

deprecation is indeed a preference, solver can still pick it if it's forced to. base <0 would be a hard (unsatisfiable) constraint.

TL;DR deprecations on Hackage do very little.
IMO not worth using at all
(There are exceptions, but they could be pruned by being able to do a bit more precise revisions or situations like in haskell-infra/hackage-trustees#213).

from happy.

int-index avatar int-index commented on August 23, 2024

OK, I revised it to specify base <0

from happy.

andreasabel avatar andreasabel commented on August 23, 2024

See https://hackage.haskell.org/package/happy-1.21.0/revisions/

from happy.

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.