Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- locateModule :: MonadIO m => HscEnv -> [(UnitId, DynFlags)] -> [String] -> (ModuleName -> NormalizedFilePath -> m (Maybe NormalizedFilePath)) -> Located ModuleName -> Maybe FastString -> Bool -> m (Either [FileDiagnostic] Import)
- locateModuleFile :: MonadIO m => [(UnitId, [FilePath])] -> [String] -> (ModuleName -> NormalizedFilePath -> m (Maybe NormalizedFilePath)) -> Bool -> ModuleName -> m (Maybe (UnitId, NormalizedFilePath))
- data Import
- data ArtifactsLocation = ArtifactsLocation {}
- modSummaryToArtifactsLocation :: NormalizedFilePath -> Maybe ModSummary -> ArtifactsLocation
- isBootLocation :: ArtifactsLocation -> Bool
- mkImportDirs :: HscEnv -> (UnitId, DynFlags) -> Maybe (PackageName, (UnitId, [FilePath]))
Documentation
:: MonadIO m | |
=> HscEnv | |
-> [(UnitId, DynFlags)] | Import directories |
-> [String] | File extensions |
-> (ModuleName -> NormalizedFilePath -> m (Maybe NormalizedFilePath)) | does file exist predicate |
-> Located ModuleName | Module name |
-> Maybe FastString | 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])] -> [String] -> (ModuleName -> NormalizedFilePath -> m (Maybe NormalizedFilePath)) -> Bool -> ModuleName -> m (Maybe (UnitId, NormalizedFilePath)) 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 (PackageName, (UnitId, [FilePath])) 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.