HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulemonoid-extras-0.6.2Haskell2010

Data.Monoid.Recommend

A type for representing values with an additional bit saying whether the value is "just a recommendation" (to be used only if nothing better comes along) or a "commitment" (to certainly be used, overriding merely recommended values), along with corresponding Semigroup and Monoid instances.

  • 1 type
  • 1 value
datadata Recommend a
#

A value of type Recommend a consists of a value of type a wrapped up in one of two constructors. The Recommend constructor indicates a "non-committal recommendation"---that is, the given value should be used if no other/better values are available. The Commit constructor indicates a "commitment"---a value which should definitely be used, overriding any Recommended values.

Constructors

Instances10Functor, Foldable, Traversable, Eq, Data, Ord, …