Safe Haskell | None |
---|---|
Language | Haskell98 |
- enumCabal :: [String] -> Cabal -> ExceptT String IO [ModuleLocation]
- type CompileFlag = String
- type ModuleToScan = (ModuleLocation, [CompileFlag], Maybe String)
- type ProjectToScan = (Project, [ModuleToScan])
- type SandboxToScan = Cabal
- data ScanContents = ScanContents {}
- enumProject :: Project -> ExceptT String IO ProjectToScan
- enumDirectory :: FilePath -> ExceptT String IO ScanContents
- scanProjectFile :: [String] -> FilePath -> ExceptT String IO Project
- scanModule :: [(String, String)] -> [String] -> ModuleLocation -> Maybe String -> ExceptT String IO InspectedModule
- scanModify :: ([String] -> Cabal -> Module -> ExceptT String IO Module) -> InspectedModule -> ExceptT String IO InspectedModule
- upToDate :: [String] -> InspectedModule -> ExceptT String IO Bool
- rescanModule :: [(String, String)] -> [String] -> InspectedModule -> ExceptT String IO (Maybe InspectedModule)
- changedModule :: Database -> [String] -> ModuleLocation -> ExceptT String IO Bool
- changedModules :: Database -> [String] -> [ModuleToScan] -> ExceptT String IO [ModuleToScan]
- module HsDev.Database
- module HsDev.Symbols.Types
- module Control.Monad.Except
Enumerate functions
type CompileFlag = String Source
Compile flags
type ModuleToScan = (ModuleLocation, [CompileFlag], Maybe String) Source
Module with flags ready to scan
type ProjectToScan = (Project, [ModuleToScan]) Source
Project ready to scan
type SandboxToScan = Cabal Source
Cabal sandbox to scan
data ScanContents Source
Scan info
enumProject :: Project -> ExceptT String IO ProjectToScan Source
Enum project sources
enumDirectory :: FilePath -> ExceptT String IO ScanContents Source
Enum directory modules
Scan
scanModule :: [(String, String)] -> [String] -> ModuleLocation -> Maybe String -> ExceptT String IO InspectedModule Source
Scan module
scanModify :: ([String] -> Cabal -> Module -> ExceptT String IO Module) -> InspectedModule -> ExceptT String IO InspectedModule Source
Scan additional info and modify scanned module. Dones't fail on error, just left module unchanged
upToDate :: [String] -> InspectedModule -> ExceptT String IO Bool Source
Is inspected module up to date?
rescanModule :: [(String, String)] -> [String] -> InspectedModule -> ExceptT String IO (Maybe InspectedModule) Source
Rescan inspected module
changedModule :: Database -> [String] -> ModuleLocation -> ExceptT String IO Bool Source
Is module new or recently changed
changedModules :: Database -> [String] -> [ModuleToScan] -> ExceptT String IO [ModuleToScan] Source
Returns new (to scan) and changed (to rescan) modules
Reexportss
module HsDev.Database
module HsDev.Symbols.Types
module Control.Monad.Except