ghc-lib-0.20190204: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

TcTyDecls

Documentation

type RolesInfo = Name -> [Role] Source #

inferRoles :: HscSource -> RoleAnnotEnv -> [TyCon] -> Name -> [Role] Source #

checkSynCycles :: UnitId -> [TyCon] -> [LTyClDecl GhcRn] -> TcM () Source #

Checks if any of the passed in TyCon s have cycles. Takes the UnitId of the home package (as we can avoid checking those TyCons: cycles never go through foreign packages) and the corresponding LTyClDecl Name for each TyCon , so we can give better error messages.

checkClassCycles :: Class -> Maybe SDoc Source #

Implicits

addTyConsToGblEnv :: [TyCon] -> TcM TcGblEnv Source #

mkDefaultMethodType :: Class -> Id -> DefMethSpec Type -> Type Source #

Record selectors

tcRecSelBinds :: [(Id, LHsBind GhcRn)] -> TcM TcGblEnv Source #

mkRecSelBinds :: [TyCon] -> [(Id, LHsBind GhcRn)] Source #

mkOneRecordSelector :: [ConLike] -> RecSelParent -> FieldLabel -> (Id, LHsBind GhcRn) Source #

AltStyle によって変換されたページ (->オリジナル) /