Safe Haskell | None |
---|---|
Language | Haskell2010 |
- tcDeriving :: [DerivInfo] -> [LDerivDecl Name] -> TcM (TcGblEnv, Bag (InstInfo Name), HsValBinds Name)
- data DerivInfo = DerivInfo {
- di_rep_tc :: TyCon
- di_clauses :: [LHsDerivingClause Name]
- di_ctxt :: SDoc
- mkDerivInfos :: [LTyClDecl Name] -> TcM [DerivInfo]
Documentation
tcDeriving :: [DerivInfo] -> [LDerivDecl Name] -> TcM (TcGblEnv, Bag (InstInfo Name), HsValBinds Name) Source #
Stuff needed to process a datatype's `deriving` clauses
DerivInfo | |
|