Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
data
Any (b :: a -> Exp Bool) (c :: t a) (d :: Bool)first-class-families Fcf.Class.Foldable Whether any element of the list satisfies a predicate. Note: this identifier conflicts with Any (from Fcf.Utils), Any (from Data.Monoid), and Any (from GHC.Exts).
Example
>>> :kind! Eval (Any (Flip (<) 5) [0,1,2,3,4,5]) Eval (Any (Flip (<) 5) [0,1,2,3,4,5]) :: Bool = True
>>> :kind! Eval (Any (Flip (<) 0) [0,1,2,3,4,5]) Eval (Any (Flip (<) 0) [0,1,2,3,4,5]) :: Bool = False
-
base-compat-batteries Data.Monoid.Compat Boolean monoid under disjunction (||).
Any x <> Any y = Any (x || y)
Examples
>>> Any True <> mempty <> Any False Any {getAny = True}
>>> mconcat (map (\x -> Any (even x)) [2,4,6,7,8]) Any {getAny = True}
>>> Any False <> mempty Any {getAny = False}
-
base-compat-batteries Data.Monoid.Compat No documentation available.
-
base-compat-batteries Data.Semigroup.Compat Boolean monoid under disjunction (||).
Any x <> Any y = Any (x || y)
Examples
>>> Any True <> mempty <> Any False Any {getAny = True}
>>> mconcat (map (\x -> Any (even x)) [2,4,6,7,8]) Any {getAny = True}
>>> Any False <> mempty Any {getAny = False}
-
base-compat-batteries Data.Semigroup.Compat No documentation available.
type family
Any (a1 :: a ~> Bool) (a2 :: t a) :: Boolsingletons-base Data.Foldable.Singletons No documentation available.
type family
Any (a1 :: a ~> Bool) (a2 :: t a) :: Boolsingletons-base Data.List.Singletons No documentation available.
type family
Any (a1 :: a ~> Bool) (a2 :: t a) :: Boolsingletons-base Prelude.Singletons No documentation available.
module Data.Generics.Product.
Any Derive a variety of lenses generically.
-
Derive a variety of prisms generically.