HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulegeneric-data-1.1.0.2Haskell2010

Generic.Data.Internal.Functions

Type-level functions on generic representations.

Warning

This is an internal module: it is not subject to any versioning policy, breaking changes can happen at any time.

If something here seems useful, please report it or create a pull request to export it from an external module.

  • 2 values
familytype family NFields (r :: k -> Type) :: Nat
#

Arity of a constructor.

Instances3NFields
  • type NFields (M1 C c f) = NFields fDefined in generic-data-1.1.0.2 · Generic.Data.Internal.Functions
  • type NFields (M1 S c f) = 1Defined in generic-data-1.1.0.2 · Generic.Data.Internal.Functions
  • type NFields (f :*: g) = NFields f + NFields gDefined in generic-data-1.1.0.2 · Generic.Data.Internal.Functions