# GHC2024 – community input

**URL:** <https://discourse.haskell.org/t/ghc2024-community-input/8168>\
**Category:** Uncategorized\
**Created:** [November 22, 2023, 9:08pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168 "2023-11-22T21:08:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nomeata](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/nomeata/32/1188_2.png) [@nomeata](https://discourse.haskell.org/u/nomeata)\
**Post date:** [November 22, 2023, 9:08pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/1 "2023-11-22T21:08:38Z")

</div>

I have started the process where the GHC Steering Committee decides if we should have a [`GHC2024` language edition](https://github.com/ghc-proposals/ghc-proposals/pull/613), and what it should contain. @MangoIV rightfully reminded me that when we [laid out the process three years ago](https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0372-ghc-extensions.rst#process), we said we’d hold a community poll as well.

So here we go!

I will not bother you with listing every possible extension, but instead narrowed the poll down to those extensions that [were actually nominated](https://github.com/ghc-proposals/ghc-proposals/blob/joachim/ghc2024/proposals/0000-ghc2024.rst). In addition, I added those extensions [didn’t make the cut for GHC2021](https://github.com/ghc-proposals/ghc-proposals/blob/ghc2021/proposals/0000-ghc2021.rst#data) by a margin of 3 votes or less, to put the numbers in perspective.

Please also have a look at the [GHC2024 proposal](https://github.com/ghc-proposals/ghc-proposals/blob/joachim/ghc2024/proposals/0000-ghc2024.rst), it lists pros and cons for every nominated extension.

So here we go:

### Which extensions should be part of GHC2024

_Poll ([view on site](https://discourse.haskell.org/t/ghc2024-community-input/8168/1))_

(Unfortunately, Discourse requires every vote to at least select one, and I can’t add more than 20 options, so there is no space for a “None” option 🤷‍♂️ .)

---

<div class="post-metadata">

**Author:** ![Kleidukos](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/kleidukos/32/1213_2.png) [@Kleidukos](https://discourse.haskell.org/u/Kleidukos)\
**Post date:** [November 22, 2023, 9:15pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/2 "2023-11-22T21:15:04Z")

</div>

Thank you very much for this @nomeata !

I like the fact that more extensions that do not degrade the user experience, like NegativeLiterals, DerivingStrategie and TypeData are candidates to get in!

I’d be much more cautious about OverloadedStrings, by experience, because it can be much, much more confusing to see a type error related to Foldable, instead of just “You tried to use Text instead of String!”.  
Having it at the top of the file explicitly really does help reading a module later on. 🙂

---

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [November 22, 2023, 9:31pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/3 "2023-11-22T21:31:39Z")

</div>

Ooh, the five I chose are the top five so far. It’s great to be in the popular group! If `TypeFamilies`, `BlockArguments` or `OverloadedStrings` get in I will be very sad ☹ . We should really get a better implementation of type level functions before enshrining them in a GHC20xx release. `BlockArguments` are just syntactically too baffling for me and I really don’t want to inflict them on Haskell newbies. `OverloadedStrings` is just far too powerful. I would rather have `StringLiteralsAreText` (even though it doesn’t exist (yet)).

---

<div class="post-metadata">

**Author:** ![jaror](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jaror/32/3271_2.png) [@jaror](https://discourse.haskell.org/u/jaror)\
**Post date:** [November 22, 2023, 9:33pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/4 "2023-11-22T21:33:14Z")

</div>

For the ExistentialQuantification + GADTSyntax = GADTs problem I’d prefer solution number three: removing ExistentialQuantification.

What are the reasons to choose NegativeLiterals over the more recent LexicalNegation? I thought the latter was just generally better and behaves more like what users expect.

I think the fact that DerivingVia leaks implementation details (that it is coercing the methods) in error messages should disqualify it. I don’t think it is mature yet.

---

<div class="post-metadata">

**Author:** ![Lsmor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/lsmor/32/3302_2.png) [@Lsmor](https://discourse.haskell.org/u/Lsmor)\
**Post date:** [November 22, 2023, 9:35pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/5 "2023-11-22T21:35:38Z")

</div>

> [@Kleidukos](#):
>
> I’d be much more cautious about OverloadedStrings, by experience, because it can be much, much more confusing to see a type error related to Foldable, instead of just “You tried to use Text instead of String!”.

That’s so true… on the other hand, I really want to bang my head against the keyboard when I get a “cannot match String with Text” 😅 Maybe my vote for it is an act of rebelty against the compiler.

Why people has something against `FunctionalDependencies` 😄 ? are they harmful?

---

<div class="post-metadata">

**Author:** ![jaror](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jaror/32/3271_2.png) [@jaror](https://discourse.haskell.org/u/jaror)\
**Post date:** [November 22, 2023, 9:46pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/6 "2023-11-22T21:46:15Z")

</div>

I think FunctionalDependencies are very complicated and often confusing. And I believe they are about as powerful as TypeFamilies, which I also think should be used with care. I don’t mind having to put a pragma at the top of my files to be able to use them.

---

<div class="post-metadata">

**Author:** ![nomeata](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/nomeata/32/1188_2.png) [@nomeata](https://discourse.haskell.org/u/nomeata)\
**Post date:** [November 22, 2023, 9:51pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/7 "2023-11-22T21:51:00Z")

</div>

> [@jaror](#):
>
> What are the reasons to choose NegativeLiterals over the more recent LexicalNegation?

Because I copied from the list from 3 years ago, I guess 🙂

---

<div class="post-metadata">

**Author:** ![rhendric](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/rhendric/32/2689_2.png) [@rhendric](https://discourse.haskell.org/u/rhendric)\
**Post date:** [November 22, 2023, 9:55pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/8 "2023-11-22T21:55:40Z")

</div>

Honest question: why are DataKinds and TypeData being lumped together?

I mean, I get that they’re similar extensions, but I’ve been migrating to having TypeData on and DataKinds off, because TypeData keeps the separation between types that can be types of values and types that only exist to do type gymnastics, and I like to be told by the compiler when I’ve screwed up that separation.

---

<div class="post-metadata">

**Author:** ![nomeata](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/nomeata/32/1188_2.png) [@nomeata](https://discourse.haskell.org/u/nomeata)\
**Post date:** [November 22, 2023, 10:03pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/9 "2023-11-22T22:03:38Z")

</div>

Because they were proposed together. If you want to refine the section of the proposal to explain why one should choose one over another, please do suggest an edit at [GHC2024 by nomeata · Pull Request #613 · ghc-proposals/ghc-proposals · GitHub](https://github.com/ghc-proposals/ghc-proposals/pull/613/files#diff-4cdb680572208bac88e6cdece0ffd73009bf7793ba88535e6ddd918e794d0ff0R63).

---

<div class="post-metadata">

**Author:** ![Kleidukos](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/kleidukos/32/1213_2.png) [@Kleidukos](https://discourse.haskell.org/u/Kleidukos)\
**Post date:** [November 22, 2023, 11:23pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/10 "2023-11-22T23:23:38Z")

</div>

> That’s so true… on the other hand, I really want to bang my head against the keyboard when I get a “cannot match String with Text” 😅 Maybe my vote for it is an act of rebelty against the compiler.

You’re sentenced to teach Haskell newbies with OverloadedStrings enabled implicitly! 👩‍⚖️

---

<div class="post-metadata">

**Author:** ![MangoIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/mangoiv/32/3519_2.png) [@MangoIV](https://discourse.haskell.org/u/MangoIV)\
**Post date:** [November 22, 2023, 11:50pm UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/11 "2023-11-22T23:50:26Z")

</div>

> [@tomjaguarpaw](#):
>
> `BlockArguments` are just syntactically too baffling for me and I really don’t want to inflict them on Haskell newbies.

I honestly find having to put a $ in front of a lambda merely something you get used to, not something that is intuitive.

---

<div class="post-metadata">

**Author:** ![rhendric](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/rhendric/32/2689_2.png) [@rhendric](https://discourse.haskell.org/u/rhendric)\
**Post date:** [November 23, 2023, 12:25am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/12 "2023-11-23T00:25:52Z")

</div>

Yeah! It’s surprising to me too just how unpopular BlockArguments is; it’s usually the first extension I turn on when I’m messing around in a sandbox.

In Haskell (and similarly in other languages with bare function application), I’ve always been inclined to view function application syntax as a fictional `infixl 10 ε` operator¹, but with fussy restrictions on what the right operand can be. BlockArguments removes the fussy restrictions and makes the language simpler, to my brain at least. (And also to the BNF grammar, judging by the BlockArguments documentation.)

¹: Ha, that’s even more or less how [the documentation for `($)`](https://hackage.haskell.org/package/base-4.19.0.0/docs/Prelude.html#v:-36-) describes function application!

---

<div class="post-metadata">

**Author:** ![hasufell](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/hasufell/32/1250_2.png) [@hasufell](https://discourse.haskell.org/u/hasufell)\
**Post date:** [November 23, 2023, 4:05am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/13 "2023-11-23T04:05:01Z")

</div>

I vote for: None.

And I need to write at least 20 chars.

* * *

I’m also confused there’s no option to vote for removal of extensions.

It seems quite a biased vote.

---

<div class="post-metadata">

**Author:** ![Ericson2314](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/ericson2314/32/1026_2.png) [@Ericson2314](https://discourse.haskell.org/u/Ericson2314)\
**Post date:** [November 23, 2023, 4:19am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/14 "2023-11-23T04:19:10Z")

</div>

Less pithily than what @hasufell wrote, I _think_ @nomeata’s goal with `GHCXXX` was to get us away from language extension soup and towards a unified language we can all agree on. I think that is good, and I express similar sentiments in [https://github.com/ghc-proposals/ghc-proposals/pull/620](https://github.com/ghc-proposals/ghc-proposals/pull/620).

But the intermediate step of debating individual extensions feels really odd to me. Especially coupled with the fact that the inevitable drift is to enable more and more extensions + some folks’ expectations that the GHCXXXX would each be compatible extensions of the last rather than a chance to batch breaking changes.

I am hesitant to post a “I feel weird about this!” comment without having a short-run actionable alternative, but…I do feel really weird about it. I guess I just hope that this really is a stepping stone, and soon we can get back all the way to actually designing new `GHCXXX` holistically rather than cobbling together spare parts from 30 years of unculled experiments.

---

<div class="post-metadata">

**Author:** ![taylor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylor/32/3147_2.png) [@taylor](https://discourse.haskell.org/u/taylor)\
**Post date:** [November 23, 2023, 4:59am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/15 "2023-11-23T04:59:00Z")

</div>

Yeah I agree. I hesitated to vote because really I’m just voting for the ones that I have happened to have learned and enabled, I have no idea of performance trade-offs or alternative paradigms being researched for example. It’s convenient to be able to specify ghc20xx and get most things and reassurance of compatibility between them.

In general for technical decisions like this, democracy is efficient / destructive. The people who are stewarding the performance, safety, compiler feedback, … etc should make the call. Language extensions were intimidating at first, but they provided opportunities to learn step by step and they create breadth for researchers to experiment with new ideas. As long as it’s considered a convenient bootstrap rather than an immutable extension binding future Haskell development then it’s all good.

---

<div class="post-metadata">

**Author:** ![nomeata](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/nomeata/32/1188_2.png) [@nomeata](https://discourse.haskell.org/u/nomeata)\
**Post date:** [November 23, 2023, 7:37am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/16 "2023-11-23T07:37:30Z")

</div>

Well, this vote won’t decide, but it adds information for the committee to ingest. It’s useful to see that support for `LambdaCase` is near anonymous, but that I’m almost a lone fan of allowing Unicode syntax.

As for voting none, that’s an unfortunate restriction of the poll system here, I tried to set the minimum to 0. Maybe I should have asked the admins to allow more options and add an explicit “none” option.

As for removing extensions relative to GHC2021: that’s certainly possible, but so far none were proposed, and I didn’t want to clutter the poll too much. If anyone has a good arguments for removing something, please add them to the proposal!

I personally see GHC20xx not primarily as “the Haskell for beginners”, but “the normal contemporary Haskell”, suitable for everyone who’s not explicitly eager to try out new or experimental language features.

There might be a world where Haskell has explicit language levels, but it would probably be more than just a set of extensions, and also affect the visible Prelude, error messages etc.

---

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [November 23, 2023, 8:40am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/17 "2023-11-23T08:40:15Z")

</div>

Yes, it could be a case me just not getting used to it yet, but I do like the idea that there is _some_ explicit separator that indicates function application when the argument is more complicated than a variable. I mean, I even find

```haskell
f myRecord { myField = newValue }

```

confusing! To me it’s much clearer to read

```haskell
f (myRecord { myField = newValue })

```

---

<div class="post-metadata">

**Author:** ![andreasabel](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/andreasabel/32/1764_2.png) [@andreasabel](https://discourse.haskell.org/u/andreasabel)\
**Post date:** [November 23, 2023, 8:50am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/18 "2023-11-23T08:50:09Z")

</div>

Why are `PatternSynonyms` not on the list? Would be my top prio after `LambdaCase`…

---

<div class="post-metadata">

**Author:** ![andreasabel](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/andreasabel/32/1764_2.png) [@andreasabel](https://discourse.haskell.org/u/andreasabel)\
**Post date:** [November 23, 2023, 8:57am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/19 "2023-11-23T08:57:01Z")

</div>

`BlockArguments` are great!  
(But maybe that’s due to my Agda training…)

---

<div class="post-metadata">

**Author:** ![ocramz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/ocramz/32/3713_2.png) [@ocramz](https://discourse.haskell.org/u/ocramz)\
**Post date:** [November 23, 2023, 9:27am UTC](https://discourse.haskell.org/t/ghc2024-community-input/8168/20 "2023-11-23T09:27:46Z")

</div>

This is a fun one because it’s the opposite of my experience: as a beginner I found OverloadedStrings an anchor for my sanity but now I only enable it on a module basis.

But yeah I agree it’s “too powerful”, on balance.

[Next page](https://discourse.haskell.org/t/ghc2024-community-input/8168.md?page=2)
