HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulebase-deriving-via-0.1.0.2Haskell2010

Data.DerivingVia

Newtype wrappers for us in deriving via clauses that " should " have been defined in base and other packages we depend on but do not control

We expected variations of these to eventually be defined upstream, but we'd like to use these concepts before that happens.

  • 1 type
newtypenewtype InstantiatedAt (c :: Type -> Constraint) a
#

A hook that represents a deriving via scheme via some class constraint

The most notable example is Generic.

data T = ...
  deriving (Monoid, Semigroup)
       via InstantiatedAt Generic T

This type's parameterization is useful because many such schemes are similarly identified by a single type class, such as Ord.

Constructors

Instances5Eq, Ord, Show, Semigroup, Monoid