Comments (14)
I ended up noticing this problem and and uploaded a new version before I noticed that this issue was open: the fix is in commit 2c82554 and is version 0.1.1.0
on Hackage.
I ended up opting to remove the pragma entirely, rather than guarding it with CPP: the -Wredundant-constraints
warning won't be part of -Wall
as soon as 8.0.2 lands (c.f. this thread and this associated pull request) which means that building on 8.0.{0,1} will produce a single redundant constraint warning, and building on both older and newer versions of GHC won't produce a warning at all.
from config-ini.
Thanks! However, the config-ini-0.1.0.0
release also got flagged but for a different reason (namely AMP which happened in base-4.8):
Configuring component lib from config-ini-0.1.1.0
Preprocessing library config-ini-0.1.1.0...
[1 of 2] Compiling Data.Ini.Config.Raw ( src/Data/Ini/Config/Raw.hs, /tmp/matrix-worker/1479833305/dist-newstyle/build/x86_64-linux/ghc-7.8.4/config-ini-0.1.1.0/build/Data/Ini/Config/Raw.o )
src/Data/Ini/Config/Raw.hs:46:16:
Not in scope: ‘*>’
Perhaps you meant one of these:
‘*’ (imported from Prelude), ‘>>’ (imported from Prelude),
‘**’ (imported from Prelude)
src/Data/Ini/Config/Raw.hs:46:61:
Not in scope: ‘<*’
Perhaps you meant one of these:
‘*’ (imported from Prelude), ‘**’ (imported from Prelude),
‘<’ (imported from Prelude)
Also, I noticed cabal-version:>=1.14
being used which is undesirable as it doesn't provide any benefit (there were no features added to the .cabal format between 1.10 and 1.14) but instead causes only problems with older cabal
versions which choke on it :-)
Finally, I've noticed there is no bug-reports
entry which is useful for tooling and for users to know where the official issue tracker is, e.g.
bug-reports: https://github.com/aisamanra/config-ini/issues
To that end, I've edited the two releases on Hackage to help the cabal solver from avoiding such install-plans:
- https://hackage.haskell.org/package/config-ini-0.1.0.0/revisions/
- https://hackage.haskell.org/package/config-ini-0.1.1.0/revisions/
If you have any questions, please ask.
from config-ini.
This seems to be happening again:
-- While building custom Setup.hs for package config-ini-0.2.3.0 using:
/home/simon/.stack/setup-exe-cache/i386-linux/Cabal-simple_mPHDZzAJ_1.22.5.0_ghc-7.10.3 --builddir=.stack-work/dist/i386-linux/Cabal-1.22.5.0 build --ghc-options " -ddump-hi $
Process exited with code: ExitFailure 1
Logs have been written to: /home/simon/src/hledger/.stack-work/logs/config-ini-0.2.3.0.log
Configuring config-ini-0.2.3.0...
Building config-ini-0.2.3.0...
Preprocessing library config-ini-0.2.3.0...
/tmp/stack30366/config-ini-0.2.3.0/src/Data/Ini/Config.hs:1:16:
unknown flag in {-# OPTIONS_GHC #-} pragma: -fno-warn-redundant-constraints```
from config-ini.
@simonmichael I've performed a revision to mitigate the issue @ https://hackage.haskell.org/package/config-ini-0.2.3.0/revisions/
See also https://matrix.hackage.haskell.org/package/config-ini
from config-ini.
Thanks @hvr.
@aisamanra, do you mean for latest config-ini to stop supporting ghc 7.10 ? It's not the end of the world, but it means hledger will, too.
from config-ini.
Sorry about being slow to respond here!
When I was bumping the megaparsec
version I ran into a problem with 7.10 support and at the time wasn't sure how widely-used 7.10 was, so I [stopped testing it] it out of laziness, but I'm not at all opposed to maintaining 7.10 support if it would be helpful to have it!
from config-ini.
@aisamanra If you decide to drop GHC 7.10 support, please advertise this by an accurate lower bound on base
so that the cabal solver can avoid running into broken build-plans with compile failures... Thanks! :-)
from config-ini.
GHC 7.10 seems ancient to us frequent upgraders, and is outside our usual "last 3 major versions" window, but it's not yet 3 years old.
from config-ini.
https://repology.org/metapackage/ghc/badges gives some idea of which distros still ship it. Not too many.. ubuntu 16.04 LTS is probably the biggest.
from config-ini.
This was entirely a failure of diligence on my own part. Sorry about that! I've got a fix that appears to correctly restore 7.10 support, but given that this problem exists because I didn't test the previous one thoroughly enough, I'm going to give it a bit more of a workout before uploading it, and should have a 7.10-compatible version on Hackage in just a few hours.
from config-ini.
@simonmichael btw, with the accelerated GHC release cycle the 3-rls window which was intended to be morally a ~3-year window rule is now become rather a 5-6 release window rule to serve the original rationale behind that rule
from config-ini.
from config-ini.
from config-ini.
@simonmichael only problem though... not everyone got the memo nor was this considered when GHC HQ decided to speed up the GHC release rate... ;-)
from config-ini.
Related Issues (20)
- Megaparsec 6 is out, bump bounds HOT 1
- doctest failed to run HOT 7
- add exhaustiveness to the old parse-only API
- Feature request: SectionParser that produces all entries
- Why does config-ini-0.2.2.0 exclude ghc-8.6.1? HOT 1
- multiline comments HOT 1
- test/ini-compat/Main.hs failed to compile HOT 2
- Bidir: setting in optional section with non-default value does not get written HOT 3
- CHANGELOG.md and README.md files executable HOT 1
- Whitespace not handled
- Input files require terminating newline HOT 2
- Brilliant
- Allow megaparsec 9.0.0 HOT 5
- Have an IniParserT monad transformer?
- can not parse this file
- doctest failing in 0.2.5.0 HOT 1
- Internal double quotes in values fail to parse HOT 1
- Configuration setting not preserved HOT 1
- Optional settings only reinstated in explicit sections HOT 1
- emitIniFile produces output with redundant newlines HOT 3
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 config-ini.