GHC.Tc.Deriv.Generics

ghc-9.2.7: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Tc.Deriv.Generics

Description

The deriving code for the Generic class

# Documentation

canDoGenerics :: TyCon -> Validity Source #

canDoGenerics1 :: TyCon -> Validity Source #

data GenericKind Source #

Constructors

Gen0 |
Gen1 |

gen_Generic_binds :: GenericKind -> TyCon -> [Type] -> TcM (LHsBinds GhcPs, [LSig GhcPs], FamInst) Source #

get_gen1_constrained_tys :: TyVar -> Type -> [Type] Source #