Giter Site home page Giter Site logo

Can't be used to bootstrap GHC about heaps HOT 8 CLOSED

ndmitchell avatar ndmitchell commented on September 18, 2024
Can't be used to bootstrap GHC

from heaps.

Comments (8)

RyanGlScott avatar RyanGlScott commented on September 18, 2024

There's a fourth option here as well:

  1. Use head.hackage to build dependencies with GHC HEAD.

Indeed, I added a head.hackage patch for cabal-doctest here for precisely this reason.

cc @phadej

from heaps.

ndmitchell avatar ndmitchell commented on September 18, 2024

I don't use head.hackage, so it doesn't fit my workflow, so while it might be enough for some people I'd still need another solution.

from heaps.

RyanGlScott avatar RyanGlScott commented on September 18, 2024

While I'm sympathetic to the desire to have shake build with GHC HEAD at all times, keeping cabal-doctest in sync with HEAD can prove to be a nightmare due to how quickly the Cabal API changes in its development process. We'd have to constantly be churning out new Hackage releases of cabal-doctest to stay in line with the moving target of HEAD. More than likely, most of those releases would bitrot by the time the next major release of GHC came out, which would require time and effort to go back and make metadata revisions to repair the old, broken versions of cabal-doctest that no longer compile with the new major release.

This is why I strongly encourage people to use head.hackage, since it allows people who use GHC HEAD to stay on top of the latest development changes without spamming Hackage with a bunch of releases to stay in sync with HEAD. It also means that developers don't have to worry about incurring dependencies as much as they used to, since head.hackage can ensure that they're always building without issues.

from heaps.

phadej avatar phadej commented on September 18, 2024

from heaps.

RyanGlScott avatar RyanGlScott commented on September 18, 2024

Option (5) also sounds reasonable. Is there a way to remove the custom Setup.hs stanza while still retaining the ability to run doctests locally (within the heaps repo itself)?

from heaps.

RyanGlScott avatar RyanGlScott commented on September 18, 2024

@ndmitchell, #14 features a version of heaps without the cabal-doctest dependency. Would this work for your needs?

from heaps.

ndmitchell avatar ndmitchell commented on September 18, 2024
  1. would be the best option, and #14 gets there. I think @phadej is right that Shake should avoid build-type Custom.

from heaps.

RyanGlScott avatar RyanGlScott commented on September 18, 2024

I've released heaps-0.3.6.1 to Hackage without a cabal-doctest dependency. Let me know if anything else is required on heaps' end.

from heaps.

Related Issues (8)

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.