Skip to content

Commit

Permalink
refactor: fix deprecation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmckinna committed Jan 17, 2025
1 parent e37fe01 commit c1423d2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,14 @@ mapMaybe-↭ f = catMaybes-↭ ∘ map⁺ f

-- Version 2.3

open import Data.Nat.SumAndProduct public
using (sum-↭; product-↭)
import Data.Nat.SumAndProduct as ℕ

sum-↭ = ℕ.sum-↭
{-# WARNING_ON_USAGE sum-↭
"Warning: sum-↭ was deprecated in v2.3.
Please use Data.Nat.SumAndProduct.sum-↭ instead."
#-}
product-↭ = ℕ.product-↭
{-# WARNING_ON_USAGE product-↭
"Warning: product-↭ was deprecated in v2.3.
Please use Data.Nat.SumAndProduct.product-↭ instead."
Expand Down

0 comments on commit c1423d2

Please sign in to comment.