hsdev-0.1.6.2: 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 -> ExceptT String IO [Module] Source

Find module by name

lookupSymbol :: Database -> Cabal -> FilePath -> String -> ExceptT String IO [ModuleDeclaration] Source

Lookup visible within project/cabal symbol

whois :: Database -> Cabal -> FilePath -> String -> ExceptT String IO [Declaration] Source

Whois symbol in scope

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

Accessible modules

scope :: Database -> Cabal -> FilePath -> Bool -> ExceptT String IO [Declaration] Source

Symbols in scope

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 -> ExceptT String IO (FilePath, Module, Maybe Project) Source

Get context file and project

Reexports