Compute the SOP code of a datatype.
This requires that Rep is defined, which in turn requires that the type has a Generic (from module GHC.Generics) instance.
This is the default definition for Generics.SOP.Code.
For more info, see Generic.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulegenerics-sop-0.5.1.4Haskell2010
Derive generics-sop boilerplate instances from GHC's Generic.
The technique being used here is described in the following paper:
José Pedro Magalhães and Andres Löh. Generic Generic Programming. Practical Aspects of Declarative Languages (PADL) 2014.
Compute the SOP code of a datatype.
This requires that Rep is defined, which in turn requires that the type has a Generic (from module GHC.Generics) instance.
This is the default definition for Generics.SOP.Code.
For more info, see Generic.
Constraint for the class that computes gfrom.
Constraint for the class that computes gto.
Constraint for the class that computes gdatatypeInfo.
Compute the datatype info of a datatype.
An automatically computed version of Generics.SOP.from.
This requires that the type being converted has a Generic (from module GHC.Generics) instance.
This is the default definition for Generics.SOP.from.
For more info, see Generic.
An automatically computed version of Generics.SOP.to.
This requires that the type being converted has a Generic (from module GHC.Generics) instance.
This is the default definition for Generics.SOP.to.
For more info, see Generic.
An automatically computed version of Generics.SOP.datatypeInfo.
This requires that the type being converted has a Generic (from module GHC.Generics) instance.
This is the default definition for Generics.SOP.datatypeInfo.
For more info, see Generics.SOP.HasDatatypeInfo.