Skip to content

Easy deprecation in Relation.Unary.Consequences; leftover from v1.6 perhaps? #2203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,11 @@ Deprecated names
invPreorder ↦ converse-preorder
```

* In `Relation.Unary.Consequences`:
```agda
dec⟶recomputable ↦ dec⇒recomputable
```

## Missing fixity declarations added

* An effort has been made to add sensible fixities for many declarations:
Expand Down
18 changes: 16 additions & 2 deletions src/Relation/Unary/Consequences.agda
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,19 @@ module Relation.Unary.Consequences where
open import Relation.Unary
open import Relation.Nullary using (recompute)

dec⟶recomputable : {a ℓ : _} {A : Set a} {P : Pred A ℓ} → Decidable P → Recomputable P
dec⟶recomputable P-dec = recompute (P-dec _)
dec⇒recomputable : {a ℓ : _} {A : Set a} {P : Pred A ℓ} → Decidable P → Recomputable P
dec⇒recomputable P-dec = recompute (P-dec _)

------------------------------------------------------------------------
-- DEPRECATED NAMES
------------------------------------------------------------------------
-- Please use the new names as continuing support for the old names is
-- not guaranteed.

-- Version 2.0

dec⟶recomputable = dec⇒recomputable
{-# WARNING_ON_USAGE dec⟶recomputable
"Warning: dec⟶recomputable was deprecated in v2.0.
Please use dec⇒recomputable instead."
#-}