-
Notifications
You must be signed in to change notification settings - Fork 272
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
GHC 964 Fixes #5106
GHC 964 Fixes #5106
Conversation
* trivial additions of functor * limit imports to just used functions * remove unnecesary imports
a97106f
to
4338758
Compare
-Wforall-identifier
this caused a weird type error
4338758
to
4453fda
Compare
@@ -22,6 +22,12 @@ type Referent' t h = Referent.Referent' (Reference' t h) (Reference' t h) | |||
data TermEdit' t h = Replace (Referent' t h) Typing | Deprecate | |||
deriving (Eq, Ord, Show) | |||
|
|||
instance Functor (TermEdit' t) where |
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.
Can this instance not be derived? If not I'm curious why :)
Nevermind, saw the discussion in the prior PR, I'd guess it's due to the use of a type alias rather than a concrete type in the data definition.
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.
This is fantastic, thanks for this!
My only question would be what prompted the addition of all the Functor instances, I can't see them being used anywhere 🤔
Ah, seems it's now a requirement to implement Bifunctor.
This all looks good to me 😎
Overview
Follow-up from #5096 . This PR should contain only non-breaking and hence compile with the current supported GHC version 9.2.8.
No functional changes.
Tests
NOTE: I haven't tested it yet with stack - will add comment later
For testing with GHC 964, I applied the additional changes in the above PR as this PR alone won't compile due to package updates introducing non-backward-compatible changes. I then ran
cabal v2-test all
andcabal run transcripts
:✅ 276 tests passed, no failures! 👍 🎉
Loose ends
For testing, I've had also had to pin
lsp == 2.2.0.0
,servant <= 0.20.1
(currently it is<= 0.19.1
).