HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulesafe-0.3.21Haskell2010

Safe.Foldable

Foldable functions, with wrappers like the Safe module.

  • 30 values
  • Packagesafe-0.3.21
  • Exports30
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFoldable.hs

New functions

1 declaration

Safe wrappers

22 declarations
valuemaximumBoundBy :: Foldable f => a -> (a -> a -> Ordering) -> f a -> a
#

The largest element of a foldable structure with respect to the given comparison function. The result is bounded by the value given as the first argument.

valueminimumBoundBy :: Foldable f => a -> (a -> a -> Ordering) -> f a -> a
#

The smallest element of a foldable structure with respect to the given comparison function. The result is bounded by the value given as the first argument.

valuemaximumBound :: (Foldable f, Ord a) => a -> f a -> a
#

The largest element of a foldable structure. The result is bounded by the value given as the first argument.

valueminimumBound :: (Foldable f, Ord a) => a -> f a -> a
#

The smallest element of a foldable structure. The result is bounded by the value given as the first argument.

Discouraged

4 declarations

Deprecated

3 declarations