hsdev-0.1.7.1: 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 -> FilePath -> String -> ExceptT String IO [ModuleDeclaration] Source

Lookup visible within project/cabal symbol

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

Whois symbol in scope

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

Symbols in scope

Filters

restrictPackageDb :: PackageDb -> ModuleId -> Bool Source

Allow only selected cabal sandbox

restrictPackageDbStack :: PackageDbStack -> ModuleId -> Bool Source

Allow only selected cabal sandboxes

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