-
Notifications
You must be signed in to change notification settings - Fork 1
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
Revisit default GHC extensions #140
Comments
Extensions which we currently have under
All were only 1 or 2 votes (out of 11) short of making the cut, except I see no reason to remove any of these. Some others which we use a lot and might consider adding to
|
How on earth did |
I believe there have been proposals about improving it in potentially non-backwards-compatible ways, perhaps with configurable default rules? But I can't really find anything right now. (I also recall something about Similarly for |
One small pitfall I have run into related to this is that
This is easily worked around by one of
|
fourmolu/fourmolu#106 is now merged and released, so we should get |
As of #491, we will be on the GHC2021 language set. It's probably time to close this issue once that merges, yes? |
Before we do, I think it's worth thinking about records. We have a smattering of duplicate field names, puns, wild cards, and dot syntax in certain modules. I'd be happy with enabling all of these globally, but maybe we want to be more consistent, avoiding having a lot of ways to do the same sort of thing, e.g. for onboarding reasons. Eventually I'd like to enable https://downloads.haskell.org/ghc/latest/docs/users_guide/exts/records.html |
Re records: yes, we should revisit this. I would be happy with puns and dot syntax. I'm not sure how useful duplicate field names is without |
Shall we enable |
Let's revisit the default GHC extensions we're using.
@georgefst suggested using the upcoming GHC2021 standard as a starting place. [Rendered.]. Unless that's backported to GHC 8.10, we won't be able to use it directly until we drop support for GHC 8.10, which likely won't happen for a long time, but we could just copy all of the extensions it enables into our Cabal files.
I'll maintain a list of specific extensions we've considered here:
BlockArguments
The text was updated successfully, but these errors were encountered: