Git Product home page Git Product logo

Comments (14)

aisamanra avatar aisamanra commented on July 21, 2024

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.

hvr avatar hvr commented on July 21, 2024

@aisamanra

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:

If you have any questions, please ask.

from config-ini.

simonmichael avatar simonmichael commented on July 21, 2024

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.

hvr avatar hvr commented on July 21, 2024

@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.

simonmichael avatar simonmichael commented on July 21, 2024

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.

aisamanra avatar aisamanra commented on July 21, 2024

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.

hvr avatar hvr commented on July 21, 2024

@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.

simonmichael avatar simonmichael commented on July 21, 2024

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.

simonmichael avatar simonmichael commented on July 21, 2024

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.

aisamanra avatar aisamanra commented on July 21, 2024

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.

hvr avatar hvr commented on July 21, 2024

@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.

simonmichael avatar simonmichael commented on July 21, 2024

from config-ini.

simonmichael avatar simonmichael commented on July 21, 2024

from config-ini.

hvr avatar hvr commented on July 21, 2024

@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)

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.