hsdev-0.2.5.1: Haskell development library

Safe HaskellNone
LanguageHaskell98

HsDev.Commands

Contents

Synopsis

Commands

findModule :: Database -> String -> ExceptT String IO [Module] Source #

Find module by name

fileModule :: Database -> FilePath -> ExceptT String IO Module Source #

Find module in file

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