Comments (9)
It would indeed be nice if a aeson < 2
constraint could be added to the existing versions since yaml
is a pretty widely-used package and currently it's very easy to run into install plans that have no chance of building.
from yaml.
I think it might be sufficient to revise v0.8.5.3 and up.
And for reference: #202 contains a compatibility fix for this issue.
from yaml.
I'm running into this while trying to install various tools e.g. hpack
or prune-juice
.
For others who stumble across this, a temporary workaround is cabal install PACKAGE --constraint='aeson<2'
.
from yaml.
@mouse07410 I have added some bounds for the packages you mentioned. If you run into more issues of this kind, please raise an issue on the issue tracker of the relevant package. Feel free to ping me if the package maintainers don't resolve the issue themselves.
from yaml.
Actually --allow-newer
isn't even necessary to produce the error, since most yaml
versions on Hackage don't have upper bounds on aeson
.
from yaml.
As a Hackage trustee, I've pushed some Hackage revisions that should prevent yaml
from futilely building with aeson >= 2
.
If you run into similar errors with other packages, feel free to ping me or raise an issue at https://github.com/haskell-infra/hackage-trustees/issues.
from yaml.
@sjakobi I'm quite a novice, but it looks like with the current yaml-0.11.6.0
and its dependencies (aeson
is probably the culprit), a lot of popular packages fail to build (tried GHC-9.0.1 , 8.10.7, 8.8.4, 8.6.5; cabal-3.6.2.0):
- hoogle
- hindent
- hlint
- hpack
- can't recall others, but pretty sure I hit more than the above...
The above workaround appears effective, thanks! Is there a way to (temporarily) enforce it via global Cabal config file, e.g., ~/.cabal/config
or such?
from yaml.
See #202
from yaml.
As a Hackage trustee, I've pushed some Hackage revisions that should prevent
yaml
from futilely building withaeson >= 2
.
Me too. Some releases in the range >= 0.8.5.3 and <= 0.8.8.2 were still missing the bound aeson < 2
.
from yaml.
Related Issues (20)
- `encodePretty` doesn't encode all object keys correctly HOT 4
- Maps with complex keys aren't supported HOT 1
- OtherParseException thread killed is actively harmful HOT 3
- Scientific Notation of Floating Point Values
- Eq Instance for ParseException? HOT 2
- decodeThrow expecting ‘Data.ByteString.Internal.ByteString’ HOT 3
- Empty variable value
- Empty environment variable problem HOT 10
- Install executables `json2yaml` and `yaml2json` by default HOT 3
- json2yaml does not understand `--help`; both do not understand `--version` HOT 2
- Give `yaml2json` the same interface as `json2yaml`? HOT 4
- Please export Parse HOT 4
- Aeson incompatibility compile error HOT 6
- Ambiguous occurrence AesonException HOT 2
- Example code of `decodeFile` is not work HOT 1
- Build failure with `optparse-applicative-0.18`
- package not compiling with the latest aeson version (2.2.0.0) HOT 2
- Build failure with `aeson-2.2.0.0` HOT 2
- Add bound for aeson-2.0 HOT 1
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 yaml.