Code Monkey home page Code Monkey logo

Comments (8)

RyanGlScott avatar RyanGlScott commented on July 30, 2024 1

This is expected—Cabal-2.5 made a breaking change that affects cabal-doctest. Given that Cabal has a relatively volatile API that changes frequently leading up to new GHC releases, I don't think it's necessarily a good idea to try and have cabal-doctest chase that moving target.

In the meantime, there's a patch in head.hackage which works around the issue. Does that work for you?

from cabal-doctest.

deepfire avatar deepfire commented on July 30, 2024

@RyanGlScott, the patch helped, indeed!

from cabal-doctest.

deepfire avatar deepfire commented on July 30, 2024

@RyanGlScott, except for its Cabal version bound, though, which is still < 2.5 that breaks 8.8 : -)

from cabal-doctest.

RyanGlScott avatar RyanGlScott commented on July 30, 2024

Why not just use --allow-newer?

I'm not willing to relax the upper version bounds until the full GHC 8.8 release, as that invites the possibility that there will be a last-minute change in the 8.8 cycle that breaks existing uploads of cabal-doctest on Hackage. And no, this isn't me just being paranoid—this has actually happened before.

from cabal-doctest.

deepfire avatar deepfire commented on July 30, 2024

One problem with --allow-newer is that it seems to require a .project file (i.e. cabal configure doesn't accept it), which isn't how Nixpkgs is set up.

from cabal-doctest.

phadej avatar phadej commented on July 30, 2024

Nix can jailbreak packages, i.e. remove all bounds?

from cabal-doctest.

phadej avatar phadej commented on July 30, 2024

Also

% cabal v1-configure --help|grep allow
    --allow-older[=DEPS]                                 Ignore lower bounds in all
    --allow-newer[=DEPS]                                 Ignore upper bounds in all

from cabal-doctest.

deepfire avatar deepfire commented on July 30, 2024

@phadej,

Nix can jailbreak packages, i.e. remove all bounds?

..yes, but not within bodies of conditionals. doJailbreak / cabal-jailbreak has no effect on those,

cabal v1-configure...

Aha! That's what I missed from the online docs. Thank you!

from cabal-doctest.

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.