Safe Haskell | None |
---|---|
Language | Haskell98 |
- enumCabal :: [String] -> Cabal -> ErrorT String IO [ModuleLocation]
- type CompileFlag = String
- type ModuleToScan = (ModuleLocation, [CompileFlag])
- type ProjectToScan = (Project, [ModuleToScan])
- type SandboxToScan = Cabal
- data ScanContents = ScanContents {}
- enumProject :: Project -> ErrorT String IO ProjectToScan
- enumDirectory :: FilePath -> ErrorT String IO ScanContents
- scanProjectFile :: [String] -> FilePath -> ErrorT String IO Project
- scanModule :: [String] -> ModuleLocation -> ErrorT String IO InspectedModule
- upToDate :: [String] -> InspectedModule -> ErrorT String IO Bool
- rescanModule :: [String] -> InspectedModule -> ErrorT String IO (Maybe InspectedModule)
- changedModule :: Database -> [String] -> ModuleLocation -> ErrorT String IO Bool
- changedModules :: Database -> [String] -> [ModuleLocation] -> ErrorT String IO [ModuleLocation]
Enumerate functions
type CompileFlag = String Source
Compile flags
type ModuleToScan = (ModuleLocation, [CompileFlag]) 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 -> ErrorT String IO ProjectToScan Source
Enum project sources
enumDirectory :: FilePath -> ErrorT String IO ScanContents Source
Enum directory modules
Scan
scanModule :: [String] -> ModuleLocation -> ErrorT String IO InspectedModule Source
Scan module
upToDate :: [String] -> InspectedModule -> ErrorT String IO Bool Source
Is inspected module up to date?
rescanModule :: [String] -> InspectedModule -> ErrorT String IO (Maybe InspectedModule) Source
Rescan inspected module
changedModule :: Database -> [String] -> ModuleLocation -> ErrorT String IO Bool Source
Is module new or recently changed
changedModules :: Database -> [String] -> [ModuleLocation] -> ErrorT String IO [ModuleLocation] Source
Returns new (to scan) and changed (to rescan) modules