HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduledata-default-0.8.0.2Haskell98

Data.Default.Internal

Nothing to see here.

Synopsis
classclass Default a where

A class for types with a default value.

Methods

  • def :: a

    The default value for this type.

Instances96Default, …
classclass GDefault (f :: Type -> Type) where

Defaults, generically.

Methods

Instances5GDefault
  • GDefault U1Defined in data-default-0.8.0.2 · Data.Default.Internal

    A nullary constructor is its own default.

  • Default a => GDefault (K1 i a)Defined in data-default-0.8.0.2 · Data.Default.Internal

    A unary constructor wraps the default value of the argument type.

  • GDefault a => GDefault (a :+: b)Defined in data-default-0.8.0.2 · Data.Default.Internal

    For sums, we arbitrarily choose the left side.

  • (GDefault a, GDefault b) => GDefault (a :*: b)Defined in data-default-0.8.0.2 · Data.Default.Internal

    Default of products = product of defaults.

  • GDefault a => GDefault (M1 i c a)Defined in data-default-0.8.0.2 · Data.Default.Internal

    Default of wrapper = wrapper of default.