-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
- 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`
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice workaround for partiality
There was a problem hiding this comment.
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.
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... |
Make sure Swarm builds with the most recent versions of dependencies. The only one that is still lagging is
filepath
, butservant
doesn't supportfilepath-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 forhlint
, in favor of projects defining their own standalonehlint
workflows.