Skip to content

Commit 104125c

Browse files
authored
Rename push-function-into-if
1 parent 540018a commit 104125c

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,11 @@ Deprecated names
11141114
map-map-fusion ↦ map-∘
11151115
```
11161116

1117+
* In `Data.Bool.Properties` (Issue #2046):
1118+
```
1119+
push-function-into-if ↦ if-float
1120+
```
1121+
11171122
* In `Data.Fin.Base`: two new, hopefully more memorable, names `↑ˡ` `↑ʳ`
11181123
for the 'left', resp. 'right' injection of a Fin m into a 'larger' type,
11191124
`Fin (m + n)`, resp. `Fin (n + m)`, with argument order to reflect the
@@ -1138,7 +1143,7 @@ Deprecated names
11381143

11391144
As with Issue #1726 above: the deprecation of relation `_≺_` means that these definitions
11401145
associated with wf-recursion are deprecated in favour of their `_<_` counterparts.
1141-
But it's not quite sensible to say that these definiton should be *renamed* to *anything*,
1146+
But it's not quite sensible to say that these definitions should be *renamed* to *anything*,
11421147
least of all those counterparts... the type confusion would be intolerable.
11431148

11441149
* In `Data.Fin.Properties`:

src/Data/Bool/Properties.agda

+18-4
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,21 @@ proof (T? false) = ofⁿ λ()
768768
T?-diag : b T b True (T? b)
769769
T?-diag true _ = _
770770

771-
push-function-into-if : (f : A B) x {y z}
772-
f (if x then y else z) ≡ (if x then f y else f z)
773-
push-function-into-if _ true = refl
774-
push-function-into-if _ false = refl
771+
if-float : (f : A B) b {x y}
772+
f (if b then x else y) ≡ (if b then f x else f y)
773+
if-float _ true = refl
774+
if-float _ false = refl
775+
776+
------------------------------------------------------------------------
777+
-- DEPRECATED NAMES
778+
------------------------------------------------------------------------
779+
-- Please use the new names as continuing support for the old names is
780+
-- not guaranteed.
781+
782+
-- Version 2.0
783+
784+
push-function-into-if = if-float
785+
{-# WARNING_ON_USAGE push-function-into-if
786+
"Warning: push-function-into-if was deprecated in v2.0.
787+
Please use if-float instead."
788+
#-}

0 commit comments

Comments
 (0)