-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Add support for brittany (needs aeson-2) and floskell with ghc-9.0.1 #2551
Conversation
jneira
commented
Dec 27, 2021
•
edited
Loading
edited
- It requires support for aeson-2 for ghc >= 9.0.1 but we have to keep aeson < 2.0 for older ghcs. It is done through a Compat module in hls-plugin-api
- It requires Upgrade to new version of lsp libraries #2494 as the new version of lsp libs supports aeson-2.0
- Closes Build with aeson >= 2.0 #2477
d3d4b6e
to
dc06c41
Compare
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.
A few ideas: I think you could mostly get away without the CPP. The only one I'm stuck on is the adjustJson
call...
(SomePropertyKeyWithMetaData SNumber MetaData {..}) -> | ||
s A..= defaultValue | ||
fromString s A..= defaultValue |
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.
I had to inline fromString
cause ghc was not able to infer the type (tips on how to convince it appreciated)
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.
Thank you for the update!
|
yeah, looks great! |
I'll take a look at |
hmm dont know why but the error only is shown in the stack build:
|
Probably because we don't have |
i just did a |
due to haskell/cabal#6259 🤦 |
Wow that was fast, many thanks |
@@ -68,16 +68,19 @@ module Development.Benchmark.Rules | |||
|
|||
import Control.Applicative | |||
import Control.Monad | |||
import Control.Lens ((^.)) |
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 one is a fairly minor thing but the formatting is not applied
the new parsing in benchmarks is slighty different from the old one:
|
Ugh, I screwed up my string conversions trying to make them generic. I'll try again. |
many thanks, lets see if ci is green here too ;-) |
Ok it seems is ok to be merged, @michaelpj @Ailrun many thanks! |
What a marathon lol |
Mergify doesn't want to merge for some reason, but the checks are all green, so I'll hit the button. |