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

Safe HaskellNone
LanguageHaskell98

HsDev.Commands

Contents

Synopsis

Commands

findModule :: Database -> String -> ErrorT String IO [Module] Source

Find module by name

fileModule :: Database -> FilePath -> ErrorT String IO Module Source

Find module in file

whois :: Database -> Cabal -> FilePath -> String -> ErrorT String IO [ModuleDeclaration] Source

Whois symbol in scope

scopeModules :: Database -> Cabal -> FilePath -> ErrorT String IO [Module] Source

Accessible modules

moduleCompletions :: Database -> [Module] -> String -> ErrorT String IO [String] Source

Module completions

Filters

restrictCabal :: Cabal -> ModuleId -> Bool Source

Allow only selected cabal sandbox

visibleFrom :: Maybe Project -> Module -> ModuleId -> Bool Source

Check whether module is visible from source file

splitIdentifier :: String -> (Maybe String, String) Source

Split identifier into module name and identifier itself

Helpers

fileCtx :: Database -> FilePath -> ErrorT String IO (FilePath, Module, Maybe Project) Source

Get context file and project