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.
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-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 -- ghc-steering-committee@haskell.org
To unsubscribe send an email to ghc-steering-committee-leave@haskell.org