Skip to content

Fixes for agda/agda#8533: eta equality is no longer inferred#2986

Merged
andreasabel merged 2 commits intoexperimentalfrom
unguarded-eta-record
Apr 30, 2026
Merged

Fixes for agda/agda#8533: eta equality is no longer inferred#2986
andreasabel merged 2 commits intoexperimentalfrom
unguarded-eta-record

Conversation

@andreasabel
Copy link
Copy Markdown
Member

@andreasabel andreasabel commented Apr 23, 2026

  • Data.Record needs a ETA_EQUALITY pragma to suppress the UnguardedEtaRecord warning.
  • Reflection.AST.Traversal needs an explicit declaration of no-eta-equality.
    This was previously inferred.

These changes will be needed in experimental once agda/agda#8533 lands.

Superseds:

- `Data.Record` needs a `ETA_EQUALITY` pragma to suppress the `UnguardedEtaRecord` warning.
- `Reflection.AST.Traversal` needs an explicit declaration of `no-eta-equality`.
  This was previously inferred.
@andreasabel andreasabel force-pushed the unguarded-eta-record branch from a42481a to ddd5211 Compare April 24, 2026 05:42
andreasabel added a commit to agda/agda that referenced this pull request Apr 24, 2026
andreasabel added a commit to agda/agda that referenced this pull request Apr 28, 2026
* WIP: eta should not be inferred

* WIP #8370 #7477 require no-eta-equality to be declared

* Cosmetics: rename checkAxiom' to checkAxiom (unused)

* WIP: add ETA_EQUALITY pragma replacing ETA

* WIP: add forceEta to A.RecDef

* WIP: add ETA_EQUALITY pragma to parser

* Clean: Lexer.x: remove old CPP conditional

* WIP: Remove A.EtaPragma (keep C.EtaPragma)

* ETA_EQUALITY: Missing line in Parser.y

[Storch]

* Update test cases

* Address my review comments, add missing tests

* Remove SafeFlagEta error

* Update documentation

* Update std-lib submodule

* Update std-lib submodule to agda/agda-stdlib#2986

* Update docs about unguarded records

* Address Jesper and my review comments

* CHANGELOG
@andreasabel andreasabel marked this pull request as ready for review April 28, 2026 09:50
@andreasabel
Copy link
Copy Markdown
Member Author

andreasabel commented Apr 28, 2026

These changes will be needed in experimental once agda/agda#8533 lands.

Has landed now.
I updated CI to use the Agda commit from that merged PR.

@andreasabel andreasabel added this to the Agda-2.9.0 milestone Apr 29, 2026
@andreasabel andreasabel merged commit 008f12c into experimental Apr 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant