@@ -110,10 +110,10 @@ f $- = f _
110110-- Case expressions (to be used with pattern-matching lambdas, see
111111-- README.Case).
112112
113- case_return_of_ : ∀ {A : Set a} (x : A) (B : A → Set b) →
113+ case_returning_of_ : ∀ {A : Set a} (x : A) (B : A → Set b) →
114114 ((x : A) → B x) → B x
115- case x return B of f = f x
116- {-# INLINE case_return_of_ #-}
115+ case x returning B of f = f x
116+ {-# INLINE case_returning_of_ #-}
117117
118118------------------------------------------------------------------------
119119-- Non-dependent versions of dependent operations
@@ -156,7 +156,7 @@ _|>′_ = _|>_
156156-- README.Case).
157157
158158case_of_ : A → (A → B) → B
159- case x of f = case x return _ of f
159+ case x of f = case x returning _ of f
160160{-# INLINE case_of_ #-}
161161
162162------------------------------------------------------------------------
@@ -247,10 +247,24 @@ _*_ on f = f -⟨ _*_ ⟩- f
247247
248248
249249------------------------------------------------------------------------
250- -- Deprecated
250+ -- DEPRECATED NAMES
251+ ------------------------------------------------------------------------
252+ -- Please use the new names as continuing support for the old names is
253+ -- not guaranteed.
254+
255+ -- Version 1.4
251256
252257_-[_]-_ = _-⟪_⟫-_
253258{-# WARNING_ON_USAGE _-[_]-_
254259"Warning: Function._-[_]-_ was deprecated in v1.4.
255260Please use _-⟪_⟫-_ instead."
256261#-}
262+
263+ -- Version 2.0
264+
265+ case_return_of_ = case_returning_of_
266+ {-# WARNING_ON_USAGE case_return_of_
267+ "case_return_of_ was deprecated in v2.0.
268+ Please use case_returning_of_ instead."
269+ #-}
270+
0 commit comments