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

Support GHC 9.8, bump upper bounds, and update CI #1828

Merged
merged 15 commits into from
May 10, 2024
Merged

Support GHC 9.8, bump upper bounds, and update CI #1828

merged 15 commits into from
May 10, 2024

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented May 10, 2024

Make sure Swarm builds with the most recent versions of dependencies. The only one that is still lagging is filepath, but servant doesn't support filepath-1.5 so Swarm can't either.

The only real update needed was due to some breaking changes in aeson-2.2, but the necessary changes were very minor.

Also update our CI: haskell-ci recently dropped support for hlint, in favor of projects defining their own standalone hlint workflows.

byorgey added 8 commits May 10, 2024 11:33
- Support GHC 9.8 (`base-4.19`)
- `lsp-2.6`
- `containers-0.7`
- `lens-5.3`
- `linear-1.23`
- `time-1.14`
- `wai-app-static-3.1.9`
- `template-haskell-2.21`
- `QuickCheck-2.15`
- Regenerate `haskell-ci` workflow
- `haskell-ci` recently removed support for `hlint`; add a separate
  `hlint` workflow
- Update the Mergify config to require cabal file formatting and hlint
  to pass
- Update the Mergify config to require the new version of GHC
@byorgey byorgey changed the title Support GHC 9.8 and update a bunch of upper bounds Support GHC 9.8, bump upper bounds, and update CI May 10, 2024
@byorgey byorgey marked this pull request as ready for review May 10, 2024 17:20
@byorgey byorgey requested a review from kostmo May 10, 2024 17:20
@@ -50,7 +50,7 @@ data AbsoluteDir = DEast | DNorth | DWest | DSouth
deriving (Eq, Ord, Show, Read, Generic, Data, Hashable, Enum, Bounded)

directionJsonModifier :: String -> String
directionJsonModifier = map C.toLower . L.tail
directionJsonModifier = map C.toLower . L.drop 1
Copy link
Member

Choose a reason for hiding this comment

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

Nice workaround for partiality

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that's an easy one. There's nothing like drop to replace head, but https://github.com/haskell/core-libraries-committee/blob/main/guides/warning-for-head-and-tail.md had some good ideas, including the idea to replace uses of head with a locally-defined version that pattern-matches and calls error explicitly. That avoids the warning and also generates a better error message in case it ever does actually crash.

@byorgey byorgey added the merge me Trigger the merge process of the Pull request. label May 10, 2024
@byorgey
Copy link
Member Author

byorgey commented May 10, 2024

Whew, glad to finally get this done, I've been working on it all day! Updates like this always end up taking longer than I think...

@byorgey byorgey merged commit 0968161 into main May 10, 2024
10 checks passed
@byorgey byorgey deleted the ghc-9.8 branch May 10, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants