Git Product home page Git Product logo

Comments (6)

dan-t avatar dan-t commented on July 20, 2024

What you're able to do is to set the versions to the ones of a haskell platform, try to
build it, rebuild with --allow-newer, and finally set the upper bounds to the ones of the build:
cabal-bounds update --haskell-platform=2013.2.0.0 project.cabal
cabal install
cabal install --allow-newer
cabal-bounds update --upper project.cabal dist/dist-sandbox-*/setup-config

I want to keep the scope of cabal-bounds on the cabal file and even in your
workflow you want to modify the cabal file at the end, so using a cabal.config
doesn't seem to give you that much.

I think a more common workflow is to start a project and initialize your bounds to the
ones of a haskell platform and then try to loosen the upper bounds.

from cabal-bounds.

lspitzner avatar lspitzner commented on July 20, 2024

but i could do any updates to the .cabal by hand, avoiding the reformatting. on the other hand, i ideally would want a tool to download cabal.configs for different platform or stackage versions, and this might certainly go beyond the intended scope of cabal-bounds.

from cabal-bounds.

dan-t avatar dan-t commented on July 20, 2024

If you want to give a try on such a tool, have a look at the functions
libraries, haskellPlatformLibraries and installedLibraries inside of
lib/CabalBounds/Main.hs. I think it's quite straight forward to generate
a cabal.config from the result of these functions.

from cabal-bounds.

lspitzner avatar lspitzner commented on July 20, 2024

i already noticed you have nice hard-coded versions for the platform releases. where did you obtain those? just by looking at the contents of the tarballs?

from cabal-bounds.

dan-t avatar dan-t commented on July 20, 2024

There has been a web side comparing the versions of the libraries for each haskell platform. But
I can't recall where it was.

from cabal-bounds.

lspitzner avatar lspitzner commented on July 20, 2024

i found https://github.com/haskell/haskell-platform/wiki/Library-VersionMatrix, but that seems outdated. i'll search some more / ask around.

Thansk for your replies.

from cabal-bounds.

Related Issues (12)

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.