ghc-9.14.0.20251128: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Iface.Ext.Ast

Synopsis

Documentation

mkHieFile :: MonadIO m => ModSummary -> TcGblEnv -> RenamedSource -> m HieFile #

Construct an HieFile from the outputs of the typechecker.

mkHieFileWithSource :: FilePath -> ByteString -> ModSummary -> TcGblEnv -> RenamedSource -> HieFile #

Construct an HieFile from the outputs of the typechecker but don't read the source file again from disk.

getCompressedAsts :: TypecheckedSource -> RenamedSource -> Bag EvBind -> [ClsInst] -> [TyCon] -> TypeEnv -> (HieASTs TypeIndex, Array TypeIndex HieTypeFlat, NameEntityInfo) #

enrichHie :: TypecheckedSource -> RenamedSource -> Bag EvBind -> [ClsInst] -> [TyCon] -> TypeEnv -> (HieASTs Type, NameEntityInfo) #

Orphan instances

HasLoc a => HasLoc (DataDefnCons a) # 
Instance details

HasLoc (HsDataDefn GhcRn) # 
Instance details

(HasLoc a, HiePass p) => HasLoc (FamEqn (GhcPass p) a) # 
Instance details

Methods

getHasLoc :: FamEqn (GhcPass p) a -> SrcSpan #

(HasLoc tm, HasLoc ty) => HasLoc (HsArg (GhcPass p) tm ty) # 
Instance details

Methods

getHasLoc :: HsArg (GhcPass p) tm ty -> SrcSpan #