HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulesafe-0.3.21Haskell2010

Safe.Foldable

Foldable functions, with wrappers like the Safe module.

Contents
  1. New functions
  2. Safe wrappers
  3. Discouraged
  4. Deprecated
Synopsis
  • Packagesafe-0.3.21
  • Exports30
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFoldable.hs

New functions

Safe wrappers

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

Deprecated