Safe Haskell | None |
---|
RnNames
- rnImports :: [LImportDecl RdrName] -> RnM ([LImportDecl Name], GlobalRdrEnv, ImportAvails, AnyHpcUsage)
- getLocalNonValBinders :: MiniFixityEnv -> HsGroup RdrName -> RnM ((TcGblEnv, TcLclEnv), NameSet)
- rnExports :: Bool -> Maybe [LIE RdrName] -> TcGblEnv -> RnM TcGblEnv
- extendGlobalRdrEnvRn :: [AvailInfo] -> MiniFixityEnv -> RnM (TcGblEnv, TcLclEnv)
- gresFromAvails :: Provenance -> [AvailInfo] -> [GlobalRdrElt]
- lookupTcdName :: Maybe Name -> TyClDecl RdrName -> RnM (Located Name)
- reportUnusedNames :: Maybe [LIE RdrName] -> TcGblEnv -> RnM ()
- finishWarnings :: DynFlags -> Maybe WarningTxt -> TcGblEnv -> RnM TcGblEnv
Documentation
rnImports :: [LImportDecl RdrName] -> RnM ([LImportDecl Name], GlobalRdrEnv, ImportAvails, AnyHpcUsage)Source
Process Import Decls Do the non SOURCE ones first, so that we get a helpful warning for SOURCE ones that are unnecessary
getLocalNonValBinders :: MiniFixityEnv -> HsGroup RdrName -> RnM ((TcGblEnv, TcLclEnv), NameSet)Source
extendGlobalRdrEnvRn :: [AvailInfo] -> MiniFixityEnv -> RnM (TcGblEnv, TcLclEnv)Source
gresFromAvails :: Provenance -> [AvailInfo] -> [GlobalRdrElt]Source
make a GlobalRdrEnv
where all the elements point to the same
Provenance (useful for hiding imports, or imports with
no details).
finishWarnings :: DynFlags -> Maybe WarningTxt -> TcGblEnv -> RnM TcGblEnvSource