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

Safe HaskellNone
LanguageHaskell98

HsDev.Symbols

Contents

Synopsis

Information

moduleLocals :: Module -> Module Source

Bring locals to top

moduleLocalDeclarations :: Module -> Map String Declaration Source

Get declarations with locals

moduleModuleDeclarations :: Module -> [ModuleDeclaration] Source

Get list of declarations as ModuleDeclaration

class Locals a where Source

Methods

locals :: a -> [Declaration] Source

where_ :: a -> [Declaration] -> a Source

data Inspection Source

Inspection data

Constructors

InspectionNone

No inspection

InspectionAt POSIXTime [String]

Time and flags of inspection

inspectionOpts :: Inspection -> [String] Source

Get inspection opts

Functions

declarationInfo :: DeclarationInfo -> Either (Maybe String, [Declaration]) TypeInfo Source

Get function type of type info

declarationTypeInfo :: DeclarationInfo -> Maybe TypeInfo Source

Get type info of declaration

qualifiedName :: ModuleId -> Declaration -> String Source

Returns qualified name of symbol

importQualifier :: Maybe String -> Import -> Bool Source

Imported module can be accessed via qualifier

Utility

locateProject :: FilePath -> IO (Maybe Project) Source

Find project file is related to

locateSourceDir :: FilePath -> IO (Maybe FilePath) Source

Locate source dir of file

Modifiers

addDeclaration :: Declaration -> Module -> Module Source

Add declaration to module

Other

unalias :: Module -> String -> [String] Source

Unalias import name

moduleContents :: Module -> [String] Source

Module contents

Reexports