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)

getLocalNonValBinders :: HsGroup RdrName -> RnM [AvailInfo]

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

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

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

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 ()

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