HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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