From e27fdd18cdfd8424d19058a3b59256219d111733 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Sat, 17 Apr 2021 20:08:36 +0200 Subject: Uniformize the name of the Ltac2 boolean equality function. All other equality functions are called "equal" but this one was called "eq". We add a deprecated alias for backward compatibility. --- doc/changelog/05-tactic-language/14128-ltac2-bool-equal-rename.rst | 5 +++++ user-contrib/Ltac2/Bool.v | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 doc/changelog/05-tactic-language/14128-ltac2-bool-equal-rename.rst diff --git a/doc/changelog/05-tactic-language/14128-ltac2-bool-equal-rename.rst b/doc/changelog/05-tactic-language/14128-ltac2-bool-equal-rename.rst new file mode 100644 index 0000000000..17eb710344 --- /dev/null +++ b/doc/changelog/05-tactic-language/14128-ltac2-bool-equal-rename.rst @@ -0,0 +1,5 @@ +- **Changed:** + Renamed Ltac2 Bool.eq into Bool.equal for uniformity. + The old function is now a deprecated alias + (`#14128 `_, + by Pierre-Marie Pédrot). diff --git a/user-contrib/Ltac2/Bool.v b/user-contrib/Ltac2/Bool.v index 624097728e..b201574808 100644 --- a/user-contrib/Ltac2/Bool.v +++ b/user-contrib/Ltac2/Bool.v @@ -48,7 +48,7 @@ Ltac2 xor x y := end end. -Ltac2 eq x y := +Ltac2 equal x y := match x with | true => match y with @@ -61,3 +61,6 @@ Ltac2 eq x y := | false => true end end. + +#[deprecated(note="Use Bool.equal", since="8.14")] +Ltac2 eq := equal. -- cgit v1.2.3