Skip to content

Commit 54f5c38

Browse files
[ add ] style-guide recommendation preferring contradiction over ⊥-elim (#2798)
* add: recommendation * fix: whitespace * Update doc/style-guide.md Improved text. Co-authored-by: Jacques Carette <carette@mcmaster.ca> * fix: `fill-column` to 72 --------- Co-authored-by: Jacques Carette <carette@mcmaster.ca>
1 parent 08bc2b8 commit 54f5c38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/style-guide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,3 +717,8 @@ used successfully in PR
717717
systematic for `Nary` relations in PR
718718
[#811](https://github.com/agda/agda-stdlib/pull/811)
719719

720+
## Prefer use of `Relation.Nullary.Negation.Core.contradiction`
721+
722+
Where possible use `contradiction` between two explicit arguments rather
723+
than appealing to the lower-level `Data.Empty.⊥-elim`. This provides
724+
clearer documentation for readers of the code.

0 commit comments

Comments
 (0)