Skip to content

Commit

Permalink
Fix #6066: document redundant pattern directives in records
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Oct 5, 2022
1 parent 53143b4 commit 1097d0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/user-manual/language/record-types.lagda.rst
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ is on. If you want the converse, you can add the record directive
pred : HereditaryList → List HereditaryList
pred record{ sublists = ts } = ts

If both ``eta-equality`` and ``pattern`` are given for a record types,
Agda will alert the user of a redundant ``pattern`` directive.
However, if η is inferred but not declared explicitly, Agda will just
ignore a redundant ``pattern`` directive; this is because the default
can be changed globally by option :option:`--no-eta-equality`.

.. _instance-fields:

Instance fields
Expand Down

0 comments on commit 1097d0a

Please sign in to comment.