Please review #752: Lazy Field Annotations
Dear Committee, Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, which allows the existing lazy field annotation syntax `~` to be used independently of `StrictData`. https://github.com/ghc-proposals/ghc-proposals/pull/752 https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000... I'd like to nominate Malte as the shepherd. Please guide us to a conclusion as outlined in https://github.com/ghc-proposals/ghc-proposals/blob/master/README.rst#commit.... Cheers, Adam -- Adam Gundry, Haskell Consultant Well-Typed LLP, https://www.well-typed.com/ Registered in England & Wales, OC335890 27 Old Gloucester Street, London WC1N 3AX, England
Dear Committee, Adams announcement already summarizes this proposal sufficiently well: On 2026-06-02 18:26, Adam Gundry wrote:
Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, which allows the existing lazy field annotation syntax `~` to be used independently of `StrictData`.
https://github.com/ghc-proposals/ghc-proposals/pull/752 https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000...
the proposal is well written and seems sensible to me. I recommend acceptance. Although niche, in the context of code generation it seems to address a real pain point which has tripped people up in multiple issues. The added benefit that this creates a bit more symmetry between ! and ~ annotations alone would maybe not suffice. However, together I believe there are enough arguments here to warrant the burden of adding a new extension especially since this one is completely backwards compatible. I invite you to have a look and voice your opinion. Best, Malte
Thanks Malte I have already expressed my thumbs-up <https://github.com/ghc-proposals/ghc-proposals/pull/752#issuecomment-4607619080> . Simon On Thu, 11 Jun 2026 at 22:45, Malte Ott <malte.ott@maralorn.de> wrote:
Dear Committee,
Adams announcement already summarizes this proposal sufficiently well:
On 2026-06-02 18:26, Adam Gundry wrote:
Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, which allows the existing lazy field annotation syntax `~` to be used independently of `StrictData`.
https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000...
the proposal is well written and seems sensible to me. I recommend acceptance.
Although niche, in the context of code generation it seems to address a real pain point which has tripped people up in multiple issues. The added benefit that this creates a bit more symmetry between ! and ~ annotations alone would maybe not suffice. However, together I believe there are enough arguments here to warrant the burden of adding a new extension especially since this one is completely backwards compatible.
I invite you to have a look and voice your opinion.
Best, Malte _______________________________________________ ghc-steering-committee mailing list -- ghc-steering-committee@haskell.org To unsubscribe send an email to ghc-steering-committee-leave@haskell.org
I’m in favor, though I would also vote for the alternative to allow ~ without an extension, similar to how ! works today. This is good for now, and the alternative can be covered later in a default extension set. /Matti Palli On Thu, Jun 11, 2026 at 23:45 Malte Ott <malte.ott@maralorn.de> wrote:
Dear Committee,
Adams announcement already summarizes this proposal sufficiently well:
On 2026-06-02 18:26, Adam Gundry wrote:
Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, which allows the existing lazy field annotation syntax `~` to be used independently of `StrictData`.
https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000...
the proposal is well written and seems sensible to me. I recommend acceptance.
Although niche, in the context of code generation it seems to address a real pain point which has tripped people up in multiple issues. The added benefit that this creates a bit more symmetry between ! and ~ annotations alone would maybe not suffice. However, together I believe there are enough arguments here to warrant the burden of adding a new extension especially since this one is completely backwards compatible.
I invite you to have a look and voice your opinion.
Best, Malte _______________________________________________ ghc-steering-committee mailing list -- ghc-steering-committee@haskell.org To unsubscribe send an email to ghc-steering-committee-leave@haskell.org
I'm also in favour. On 12/06/2026 23:18, Matthías Páll Gissurarson wrote:
I’m in favor, though I would also vote for the alternative to allow ~ without an extension, similar to how ! works today. This is good for now, and the alternative can be covered later in a default extension set.
I think we should stick by the principle that if you ask for a particular language edition (e.g. Haskell2010), its meaning is fixed over time, i.e. by upgrading the compiler you don't get extra features not in that language edition. So IMHO the right way to achieve the feature being available by default is to add the extension as proposed, then in the next GHC20xx we can consider adding it to the default language. (I guess we could aim for GHC2027 as the next iteration of that process, so perhaps we should start thinking about what it ought to include.) Cheers, Adam
On Thu, Jun 11, 2026 at 23:45 Malte Ott <malte.ott@maralorn.de <mailto:malte.ott@maralorn.de>> wrote:
Dear Committee,
Adams announcement already summarizes this proposal sufficiently well:
On 2026-06-02 18:26, Adam Gundry wrote: > Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, > which allows the existing lazy field annotation syntax `~` to be used > independently of `StrictData`. > > https://github.com/ghc-proposals/ghc-proposals/pull/752 <https:// github.com/ghc-proposals/ghc-proposals/pull/752> > https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/ proposals/0000-lazy-field-annotations.rst <https://github.com/ sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000-lazy- field-annotations.rst>
the proposal is well written and seems sensible to me. I recommend acceptance.
Although niche, in the context of code generation it seems to address a real pain point which has tripped people up in multiple issues. The added benefit that this creates a bit more symmetry between ! and ~ annotations alone would maybe not suffice. However, together I believe there are enough arguments here to warrant the burden of adding a new extension especially since this one is completely backwards compatible.
I invite you to have a look and voice your opinion.
Best, Malte
-- Adam Gundry, Haskell Consultant Well-Typed LLP, https://www.well-typed.com/ Registered in England & Wales, OC335890 27 Old Gloucester Street, London WC1N 3AX, England
I’ve read through it now and I’m also in support. It’s a simple incremental improvement which makes the language a little bit more uniform. The plan to eventually add it to a GHCXX language edition sounds good. Rodrigo
On 12 Jun 2026, at 08:06, Adam Gundry <adam@well-typed.com> wrote:
I'm also in favour.
On 12/06/2026 23:18, Matthías Páll Gissurarson wrote:
I’m in favor, though I would also vote for the alternative to allow ~ without an extension, similar to how ! works today. This is good for now, and the alternative can be covered later in a default extension set.
I think we should stick by the principle that if you ask for a particular language edition (e.g. Haskell2010), its meaning is fixed over time, i.e. by upgrading the compiler you don't get extra features not in that language edition. So IMHO the right way to achieve the feature being available by default is to add the extension as proposed, then in the next GHC20xx we can consider adding it to the default language.
(I guess we could aim for GHC2027 as the next iteration of that process, so perhaps we should start thinking about what it ought to include.)
Cheers,
Adam
On Thu, Jun 11, 2026 at 23:45 Malte Ott <malte.ott@maralorn.de <mailto:malte.ott@maralorn.de>> wrote: Dear Committee, Adams announcement already summarizes this proposal sufficiently well: On 2026-06-02 18:26, Adam Gundry wrote: > Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, > which allows the existing lazy field annotation syntax `~` to be used > independently of `StrictData`. > > https://github.com/ghc-proposals/ghc-proposals/pull/752 <https:// github.com/ghc-proposals/ghc-proposals/pull/752> > https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/ proposals/0000-lazy-field-annotations.rst <https://github.com/ sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000-lazy- field-annotations.rst> the proposal is well written and seems sensible to me. I recommend acceptance. Although niche, in the context of code generation it seems to address a real pain point which has tripped people up in multiple issues. The added benefit that this creates a bit more symmetry between ! and ~ annotations alone would maybe not suffice. However, together I believe there are enough arguments here to warrant the burden of adding a new extension especially since this one is completely backwards compatible. I invite you to have a look and voice your opinion. Best, Malte
-- Adam Gundry, Haskell Consultant Well-Typed LLP, https://www.well-typed.com/
Registered in England & Wales, OC335890 27 Old Gloucester Street, London WC1N 3AX, England
_______________________________________________ ghc-steering-committee mailing list -- ghc-steering-committee@haskell.org To unsubscribe send an email to ghc-steering-committee-leave@haskell.org
+1 from me. Am Fr., 12. Juni 2026 um 11:44 Uhr schrieb Rodrigo Mesquita < rodrigo@well-typed.com>:
I’ve read through it now and I’m also in support. It’s a simple incremental improvement which makes the language a little bit more uniform. The plan to eventually add it to a GHCXX language edition sounds good.
Rodrigo
On 12 Jun 2026, at 08:06, Adam Gundry <adam@well-typed.com> wrote:
I'm also in favour.
On 12/06/2026 23:18, Matthías Páll Gissurarson wrote:
I’m in favor, though I would also vote for the alternative to allow ~ without an extension, similar to how ! works today. This is good for now, and the alternative can be covered later in a default extension set.
I think we should stick by the principle that if you ask for a particular language edition (e.g. Haskell2010), its meaning is fixed over time, i.e. by upgrading the compiler you don't get extra features not in that language edition. So IMHO the right way to achieve the feature being available by default is to add the extension as proposed, then in the next GHC20xx we can consider adding it to the default language.
(I guess we could aim for GHC2027 as the next iteration of that process, so perhaps we should start thinking about what it ought to include.)
Cheers,
Adam
On Thu, Jun 11, 2026 at 23:45 Malte Ott <malte.ott@maralorn.de <mailto: malte.ott@maralorn.de>> wrote: Dear Committee, Adams announcement already summarizes this proposal sufficiently well: On 2026-06-02 18:26, Adam Gundry wrote: > Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, > which allows the existing lazy field annotation syntax `~` to be used > independently of `StrictData`. > > https://github.com/ghc-proposals/ghc-proposals/pull/752 <https:// github.com/ghc-proposals/ghc-proposals/pull/752> > https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/ proposals/0000-lazy-field-annotations.rst <https://github.com/ sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000-lazy- field-annotations.rst> the proposal is well written and seems sensible to me. I recommend acceptance. Although niche, in the context of code generation it seems to address a real pain point which has tripped people up in multiple issues. The added benefit that this creates a bit more symmetry between ! and ~ annotations alone would maybe not suffice. However, together I believe there are enough arguments here to warrant the burden of adding a new extension especially since this one is completely backwards compatible. I invite you to have a look and voice your opinion. Best, Malte
-- Adam Gundry, Haskell Consultant Well-Typed LLP, https://www.well-typed.com/
Registered in England & Wales, OC335890 27 Old Gloucester Street, London WC1N 3AX, England
_______________________________________________ ghc-steering-committee mailing list -- ghc-steering-committee@haskell.org To unsubscribe send an email to ghc-steering-committee-leave@haskell.org
_______________________________________________ ghc-steering-committee mailing list -- ghc-steering-committee@haskell.org To unsubscribe send an email to ghc-steering-committee-leave@haskell.org
+1 seems reasonable. On Thu, 11 Jun 2026 at 22:45, Malte Ott <malte.ott@maralorn.de> wrote:
Dear Committee,
Adams announcement already summarizes this proposal sufficiently well:
On 2026-06-02 18:26, Adam Gundry wrote:
Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, which allows the existing lazy field annotation syntax `~` to be used independently of `StrictData`.
https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000...
the proposal is well written and seems sensible to me. I recommend acceptance.
Although niche, in the context of code generation it seems to address a real pain point which has tripped people up in multiple issues. The added benefit that this creates a bit more symmetry between ! and ~ annotations alone would maybe not suffice. However, together I believe there are enough arguments here to warrant the burden of adding a new extension especially since this one is completely backwards compatible.
I invite you to have a look and voice your opinion.
Best, Malte _______________________________________________ ghc-steering-committee mailing list -- ghc-steering-committee@haskell.org To unsubscribe send an email to ghc-steering-committee-leave@haskell.org
There has been no discussion in the last 3 weeks. There has been no opposition voiced and most of the committee is in favor. I will mark the proposal as accepted as is. Thanks everyone. Best, Malte On 2026-06-30 12:22, Simon Marlow wrote:
+1 seems reasonable.
On Thu, 11 Jun 2026 at 22:45, Malte Ott <[1]malte.ott@maralorn.de> wrote:
Dear Committee,
Adams announcement already summarizes this proposal sufficiently well:
On 2026-06-02 18:26, Adam Gundry wrote: > Simon Jakobi proposes a new language extension, `LazyFieldAnnotations`, > which allows the existing lazy field annotation syntax `~` to be used > independently of `StrictData`. > > [2]https://github.com/ghc-proposals/ghc-proposals/pull/752 > [3]https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/pro posals/0000-lazy-field-annotations.rst
the proposal is well written and seems sensible to me. I recommend acceptance.
Although niche, in the context of code generation it seems to address a real pain point which has tripped people up in multiple issues. The added benefit that this creates a bit more symmetry between ! and ~ annotations alone would maybe not suffice. However, together I believe there are enough arguments here to warrant the burden of adding a new extension especially since this one is completely backwards compatible.
I invite you to have a look and voice your opinion.
Best, Malte _______________________________________________ ghc-steering-committee mailing list -- [4]ghc-steering-committee@haskell.org To unsubscribe send an email to [5]ghc-steering-committee-leave@haskell.org
References
1. mailto:malte.ott@maralorn.de 2. https://github.com/ghc-proposals/ghc-proposals/pull/752 3. https://github.com/sjakobi/ghc-proposals/blob/lazy-field-anns/proposals/0000... 4. mailto:ghc-steering-committee@haskell.org 5. mailto:ghc-steering-committee-leave@haskell.org
participants (7)
-
Adam Gundry -
Malte Ott -
Matthías Páll Gissurarson -
Rodrigo Mesquita -
Sebastian Graf -
Simon Marlow -
Simon Peyton Jones