Safe Haskell | Ignore |
---|---|
Language | GHC2021 |
Handles deriving
clauses on data
declarations.
Synopsis
- tcDeriving :: [DerivInfo] -> [LDerivDecl GhcRn] -> TcM (TcGblEnv, Bag (InstInfo GhcRn), HsValBinds GhcRn)
- data DerivInfo = DerivInfo {
- di_rep_tc :: TyCon
- di_scoped_tvs :: ![(Name, TyVar)]
- di_clauses :: [LHsDerivingClause GhcRn]
- di_ctxt :: SDoc
Documentation
tcDeriving :: [DerivInfo] -> [LDerivDecl GhcRn] -> TcM (TcGblEnv, Bag (InstInfo GhcRn), HsValBinds GhcRn) Source #
Stuff needed to process a datatype's `deriving` clauses
DerivInfo | |
|