hsdev-0.1.5.2: Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.

Safe HaskellNone
LanguageHaskell98

HsDev.Scan

Contents

Synopsis

Enumerate functions

enumCabal :: [String] -> Cabal -> ExceptT String IO [ModuleLocation] Source

Enum cabal modules

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

Scan

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?

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