ghc-7.0.3: The GHC API

RnNames

Synopsis

- rnImports :: [LImportDecl RdrName] -> RnM ([LImportDecl Name], GlobalRdrEnv, ImportAvails, AnyHpcUsage)
- getLocalNonValBinders :: HsGroup RdrName -> RnM [AvailInfo]
- rnExports :: Bool -> Maybe [LIE RdrName] -> TcGblEnv -> RnM TcGblEnv
- extendGlobalRdrEnvRn :: [AvailInfo] -> MiniFixityEnv -> RnM (TcGblEnv, TcLclEnv)
- gresFromAvails :: Provenance -> [AvailInfo] -> [GlobalRdrElt]
- reportUnusedNames :: Maybe [LIE RdrName] -> TcGblEnv -> RnM ()
- finishWarnings :: DynFlags -> Maybe WarningTxt -> TcGblEnv -> RnM TcGblEnv

# Documentation

rnImports :: [LImportDecl RdrName] -> RnM ([LImportDecl Name], GlobalRdrEnv, ImportAvails, AnyHpcUsage)Source

getLocalNonValBinders :: HsGroup RdrName -> RnM [AvailInfo]Source

rnExports :: Bool -> Maybe [LIE RdrName] -> TcGblEnv -> RnM TcGblEnv Source

extendGlobalRdrEnvRn :: [AvailInfo] -> MiniFixityEnv -> RnM (TcGblEnv, TcLclEnv)Source

gresFromAvails :: Provenance -> [AvailInfo] -> [GlobalRdrElt]Source

make a `GlobalRdrEnv` where all the elements point to the same import declaration (useful for hiding imports, or imports with no details).

reportUnusedNames :: Maybe [LIE RdrName] -> TcGblEnv -> RnM ()Source

finishWarnings :: DynFlags -> Maybe WarningTxt -> TcGblEnv -> RnM TcGblEnv Source