@@ -69,11 +69,7 @@ infixl 4 _─_
6969_─_ : {P : Pred A p} → ∀ xs → Any P xs → List A
7070xs ─ x∈xs = removeAt xs (index x∈xs)
7171
72- -- If any element satisfies P, then P is satisfiable.
73-
74- -- v2.4 `satisfied` is being retained for compatibility reasons,
75- -- while `satisfiable` below is renamed to `satisfiable⁺`
76- -- v3.0 `satisfied` will be renamed to `satisfiable`
72+ -- If any element satisfies P, then P is satisfied.
7773
7874satisfied : Any P xs → Satisfiable P
7975satisfied (here px) = _ , px
@@ -94,16 +90,12 @@ any? : Decidable P → Decidable (Any P)
9490any? P? [] = no λ ()
9591any? P? (x ∷ xs) = Dec.map′ fromSum toSum (P? x ⊎? any? P? xs)
9692
97- satisfiable⁺ : Satisfiable P → Satisfiable (Any P)
98- satisfiable⁺ (x , Px) = [ x ] , here Px
99-
100- satisfiable⁻ : Satisfiable (Any P) → Satisfiable P
101- satisfiable⁻ (x ∷ _ , here px) = x , px
102- satisfiable⁻ (_ ∷ xs , there pxs) = satisfiable⁻ (xs , pxs)
93+ satisfiable : Satisfiable P → Satisfiable (Any P)
94+ satisfiable (x , Px) = [ x ] , here Px
10395
10496
10597------------------------------------------------------------------------
106- -- DEPRECATED NAMES
98+ -- DEPRECATED
10799------------------------------------------------------------------------
108100-- Please use the new names as continuing support for the old names is
109101-- not guaranteed.
@@ -115,14 +107,3 @@ any = any?
115107"Warning: any was deprecated in v1.4.
116108Please use any? instead."
117109#-}
118-
119- -- Version 2.4
120-
121- satisfiable = satisfiable⁺
122- {-# WARNING_ON_USAGE satisfiable
123- "Warning: satisfiable was deprecated in v2.4.
124- Please use satisfiable⁺ instead. Moreover,
125- the name satisfied will be renamed in v3.0
126- to satisfiable, so users should refactor
127- as soon as they can."
128- #-}
0 commit comments