Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- locateModule :: MonadIO m => HscEnv -> [(UnitId, DynFlags)] -> [String] -> (ModuleName -> NormalizedFilePath -> m (Maybe NormalizedFilePath)) -> Located ModuleName -> PkgQual -> Bool -> m (Either [FileDiagnostic] Import)
- locateModuleFile :: MonadIO m => [(UnitId, [FilePath], Set ModuleName)] -> [String] -> (ModuleName -> NormalizedFilePath -> m (Maybe NormalizedFilePath)) -> Bool -> ModuleName -> m LocateResult
- data Import
- data ArtifactsLocation = ArtifactsLocation {}
- modSummaryToArtifactsLocation :: NormalizedFilePath -> Maybe ModSummary -> ArtifactsLocation
- isBootLocation :: ArtifactsLocation -> Bool
- mkImportDirs :: HscEnv -> (UnitId, DynFlags) -> Maybe (UnitId, ([FilePath], Set ModuleName))
Documentation
:: MonadIO m | |
=> HscEnv | |
-> [(UnitId, DynFlags)] | Import directories |
-> [String] | File extensions |
-> (ModuleName -> NormalizedFilePath -> m (Maybe NormalizedFilePath)) | does file exist predicate |
-> Located ModuleName | Module name |
-> PkgQual | Package name |
-> Bool | Is boot module |
-> m (Either [FileDiagnostic] Import) |
locate a module in either the file system or the package database. Where we go from *daml to Haskell
locateModuleFile :: MonadIO m => [(UnitId, [FilePath], Set ModuleName)] -> [String] -> (ModuleName -> NormalizedFilePath -> m (Maybe NormalizedFilePath)) -> Bool -> ModuleName -> m LocateResult Source #
locate a module in the file system. Where we go from *daml to Haskell
data ArtifactsLocation Source #
ArtifactsLocation | |
|
Instances
Show ArtifactsLocation Source # | |
Defined in Development.IDE.Import.FindImports showsPrec :: Int -> ArtifactsLocation -> ShowS # show :: ArtifactsLocation -> String # showList :: [ArtifactsLocation] -> ShowS # | |
NFData ArtifactsLocation Source # | |
Defined in Development.IDE.Import.FindImports rnf :: ArtifactsLocation -> () # |
modSummaryToArtifactsLocation :: NormalizedFilePath -> Maybe ModSummary -> ArtifactsLocation Source #
mkImportDirs :: HscEnv -> (UnitId, DynFlags) -> Maybe (UnitId, ([FilePath], Set ModuleName)) Source #
This function is used to map a package name to a set of import paths.
It only returns Just for unit-ids which are possible to import into the
current module. In particular, it will return Nothing for main
components
as they can never be imported into another package.