Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to ghc-9.4 parse tree #1410

Merged
merged 1 commit into from
Aug 12, 2022
Merged

upgrade to ghc-9.4 parse tree #1410

merged 1 commit into from
Aug 12, 2022

Conversation

shayne-fletcher
Copy link
Collaborator

@shayne-fletcher shayne-fletcher commented Aug 8, 2022

@shayne-fletcher shayne-fletcher force-pushed the ghc-9.4 branch 3 times, most recently from aa8642d to bb8f1e4 Compare August 8, 2022 23:18
@shayne-fletcher
Copy link
Collaborator Author

sadly, this pr fails with macOS 9.2.2 same as #1385. fixed in 9.2.3 and note also that 9.2.2 is now two minor versions behind (ghc-9.2.4 was released early aug). perhaps it's worth reconsidering if we might patch 'ci.yml' as per this comment #1385 (comment)?

@shayne-fletcher
Copy link
Collaborator Author

i think we'll be needing @ndmitchell 's final say on this & its timing but nonetheless, if you have the time & patience, your review would be very welcome @zliu41 😊 🙏 !

Copy link
Owner

@ndmitchell ndmitchell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@@ -53,7 +53,7 @@ flag gpl
description: Use GPL libraries, specifically hscolour

flag ghc-lib
default: False
default: True
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call - this seems like the right time to flip this default

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jolly good. i've taken the liberty of pushing the change to ci.yml then that bumps the macOS compiler to ghc-9.2.3 .

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ndmitchell @shayne-fletcher what's the rationale for this change?

For ormolu I was proposing to use ghc by default when possible (tweag/ormolu#948). Are there any potential drawbacks with that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sol the motivation is discussed in #1376. i don't know of any drawbacks. you may find this blog post helpful.

src/Hint/Extensions.hs Outdated Show resolved Hide resolved
* updates for compatibility with GHC `HEAD`
@shayne-fletcher
Copy link
Collaborator Author

fixes #1376

@shayne-fletcher shayne-fletcher merged commit d06148b into master Aug 12, 2022
@ndmitchell
Copy link
Owner

Thanks Shayne! I did leave some notes, which it appears GitHub completely dropped, so from memory:

of course with 9.4.1 being now available, one hopes we can add 9.4 to that matrix in the near future

What stops us from doing that now?

perhaps it's worth reconsidering if we might patch 'ci.yml' as per this comment

Why is what we get in CI lagging so far behind?

@shayne-fletcher shayne-fletcher deleted the ghc-9.4 branch August 12, 2022 15:53
@shayne-fletcher
Copy link
Collaborator Author

shayne-fletcher commented Aug 12, 2022

What stops us from doing that now?

i just did a quick foray to find out:

            Building library for ghc-exactprint-1.5.0..
            [ 1 of 10] Compiling Language.Haskell.GHC.ExactPrint.Orphans ( src\Language\Haskell\GHC\ExactPrint\Orphans.hs, dist\build\Language\Haskell\GHC\ExactPrint\Orphans.o )
        
            src\Language\Haskell\GHC\ExactPrint\Orphans.hs:55:18: error:
            Error:     Not in scope: type constructor or class ‘AnnsLet’
            cabal.exe: Failed to build ghc-exactprint-1.5.0 (which is required by
               |
            exe:refactor from apply-refact-0.10.0.0). See the build log above for details.
            55 | instance Default AnnsLet where
               |                  ^^^^^^^

Why is what we get in CI lagging so far behind?

sorry, i have no skills in this area - i'm just cargo-culting from what i find here. perhaps you have a contact somewhere you might ask for us?

@shayne-fletcher
Copy link
Collaborator Author

shayne-fletcher commented Aug 12, 2022

What stops us from doing that now?

we may find ourselves waiting on some package upgrades also. for example, the ghc-lib project (ghc-lib-gen's dependence on aeson mostly i think) indicates that the upper-bounds of at least these packages need relaxing to be built with ghc-9.4.1:

OneTuple
splitmix
attoparsec
scientific
hashable
integer-logarithms
primitive
scientific
data-fix
aeson
indexed-traversable
semialign
indexed-traversable-instances
unordered-containers
assoc
these
text-short
time-compat
uuid-types
split

@shayne-fletcher
Copy link
Collaborator Author

What stops us from doing that now?

we may find ourselves waiting on some package upgrades also. for example, the ghc-lib project (ghc-lib-gen's dependence on aeson mostly i think) indicates that the upper-bounds of at least these packages need relaxing to be built with ghc-9.4.1:

[...]

hmmm... now that i reflect on it, likely this won't be an issue for us since after all, we got a build plan just fine with my local 9.4.1 builds & it would seem, our CI forays above 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants