Comments (6)
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.
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.config
s for different platform or stackage versions, and this might certainly go beyond the intended scope of cabal-bounds.
from cabal-bounds.
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.
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.
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.
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)
- Support new-build HOT 6
- new-build support not quite working HOT 3
- Support projects using cabal.project HOT 3
- Updating bounds without reformatting HOT 2
- Update to work with newer GHC and packages? HOT 9
- Fragile tests HOT 15
- No newline at end of file in generated .cabal HOT 6
- Cabalโs lexicografic ordering and trailing zeros in version bounds HOT 6
- unhandled argument on snippet from readme HOT 1
- drops `if` clause in `library` HOT 4
- Hpack? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cabal-bounds.