Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Import = Import {}
- class Symbol a where
- symbolName :: a -> String
- symbolQualifiedName :: a -> String
- symbolDocs :: a -> Maybe String
- symbolLocation :: a -> Location
- data ModuleId = ModuleId {}
- data Module = Module {}
- moduleLocals :: Module -> Module
- moduleLocalDeclarations :: Module -> Map String Declaration
- moduleModuleDeclarations :: Module -> [ModuleDeclaration]
- moduleId :: Module -> ModuleId
- class Locals a where
- locals :: a -> [Declaration]
- where_ :: a -> [Declaration] -> a
- data Declaration = Declaration {}
- declarationLocals :: Declaration -> [Declaration]
- data TypeInfo = TypeInfo {}
- data DeclarationInfo
- data ModuleDeclaration = ModuleDeclaration {}
- data Inspection
- inspectionOpts :: Inspection -> [String]
- data Inspected i a = Inspected {
- inspection :: Inspection
- inspectedId :: i
- inspectionResult :: Either String a
- type InspectedModule = Inspected ModuleLocation Module
- showTypeInfo :: TypeInfo -> String -> String -> String
- declarationInfo :: DeclarationInfo -> Either (Maybe String, [Declaration]) TypeInfo
- declarationTypeInfo :: DeclarationInfo -> Maybe TypeInfo
- declarationTypeCtor :: String -> TypeInfo -> DeclarationInfo
- declarationTypeName :: DeclarationInfo -> Maybe String
- qualifiedName :: ModuleId -> Declaration -> String
- importQualifier :: Maybe String -> Import -> Bool
- class Canonicalize a where
- canonicalize :: a -> IO a
- locateProject :: FilePath -> IO (Maybe Project)
- locateSourceDir :: FilePath -> IO (Maybe FilePath)
- addDeclaration :: Declaration -> Module -> Module
- unalias :: Module -> String -> [String]
- moduleContents :: Module -> [String]
- module HsDev.Symbols.Class
- module HsDev.Symbols.Documented
Information
Module import
symbolName :: a -> String Source
symbolQualifiedName :: a -> String Source
symbolDocs :: a -> Maybe String Source
symbolLocation :: a -> Location Source
Module id
Module
Module | |
|
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
locals :: a -> [Declaration] Source
where_ :: a -> [Declaration] -> a Source
Common info for typenewtypedata/class
data ModuleDeclaration Source
Symbol in module
data Inspection Source
Inspection data
InspectionNone | No inspection |
InspectionAt POSIXTime [String] | Time and flags of inspection |
inspectionOpts :: Inspection -> [String] Source
Get inspection opts
Inspected entity
Inspected | |
|
type InspectedModule = Inspected ModuleLocation Module Source
Inspected module
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
class Canonicalize a where Source
canonicalize :: a -> IO a Source
Modifiers
addDeclaration :: Declaration -> Module -> Module Source
Add declaration to module
Other
moduleContents :: Module -> [String] Source
Module contents
Reexports
module HsDev.Symbols.Class
module HsDev.Symbols.Documented