Safe Haskell | None |
---|---|
Language | Haskell98 |
- projectOf :: ModuleId -> Maybe Project
- cabalOf :: ModuleId -> Maybe Cabal
- packageOf :: ModuleId -> Maybe ModulePackage
- inProject :: Project -> ModuleId -> Bool
- inDepsOfTarget :: Info -> ModuleId -> Bool
- inDepsOfFile :: Project -> FilePath -> ModuleId -> Bool
- inDepsOfProject :: Project -> ModuleId -> Bool
- inCabal :: Cabal -> ModuleId -> Bool
- inPackage :: String -> ModuleId -> Bool
- inVersion :: String -> ModuleId -> Bool
- inFile :: FilePath -> ModuleId -> Bool
- inModuleSource :: Maybe String -> ModuleId -> Bool
- inModule :: String -> ModuleId -> Bool
- byFile :: ModuleId -> Bool
- byCabal :: ModuleId -> Bool
- standalone :: ModuleId -> Bool
- imports :: Module -> [Import]
- qualifier :: Module -> Maybe String -> [Import]
- imported :: ModuleId -> [Import] -> Bool
- visible :: Project -> ModuleId -> ModuleId -> Bool
- inScope :: Module -> Maybe String -> ModuleId -> Bool
- newestPackage :: Symbol a => [a] -> [a]
- sourceModule :: Maybe Project -> [Module] -> Maybe Module
- visibleModule :: Cabal -> Maybe Project -> [Module] -> Maybe Module
- preferredModule :: Cabal -> Maybe Project -> [ModuleId] -> Maybe ModuleId
- uniqueModules :: Cabal -> Maybe Project -> [ModuleId] -> [ModuleId]
- allOf :: [a -> Bool] -> a -> Bool
- anyOf :: [a -> Bool] -> a -> Bool
Documentation
packageOf :: ModuleId -> Maybe ModulePackage Source
Get module package
inDepsOfTarget :: Info -> ModuleId -> Bool Source
Check if module in deps of project target
inDepsOfProject :: Project -> ModuleId -> Bool Source
Check if module in deps of project
standalone :: ModuleId -> Bool Source
Check if module is standalone
qualifier :: Module -> Maybe String -> [Import] Source
Get list of imports, which can be accessed with specified qualifier or unqualified
visible :: Project -> ModuleId -> ModuleId -> Bool Source
Check if module visible from this module within this project
inScope :: Module -> Maybe String -> ModuleId -> Bool Source
Check if module is in scope with qualifier
newestPackage :: Symbol a => [a] -> [a] Source
Select symbols with last package version
visibleModule :: Cabal -> Maybe Project -> [Module] -> Maybe Module Source
Select module, visible in project or cabal
preferredModule :: Cabal -> Maybe Project -> [ModuleId] -> Maybe ModuleId Source
Select preferred visible module
uniqueModules :: Cabal -> Maybe Project -> [ModuleId] -> [ModuleId] Source
Remove duplicate modules, leave only preferredModule