ghcide-2.7.0.0: The core of an IDE
Safe HaskellNone
LanguageGHC2021

Development.IDE.Import.DependencyInformation

Synopsis

Documentation

data DependencyInformation #

Constructors

DependencyInformation 

Fields

newtype ModuleImports #

The imports for a given module.

Constructors

ModuleImports 

Fields

Instances

Instances details
Show ModuleImports # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

data RawDependencyInformation #

Unprocessed results that we find by following imports recursively.

data NodeError #

An error attached to a node in the dependency graph.

Constructors

PartOfCycle (Located ModuleName) [FilePathId]

This module is part of an import cycle. The module name corresponds to the import that enters the cycle starting from this module. The list of filepaths represents the elements in the cycle in unspecified order.

FailedToLocateImport (Located ModuleName)

This module has an import that couldn’t be located.

ParseError ModuleParseError 
ParentOfErrorNode (Located ModuleName)

This module is the parent of a module that cannot be processed (either it cannot be parsed, is part of a cycle or the parent of another error node).

Instances

Instances details
Generic NodeError # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Show NodeError # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

NFData NodeError # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Methods

rnf :: NodeError -> () #

type Rep NodeError # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

data ModuleParseError #

This does not contain the actual parse error as that is already reported by GetParsedModule.

Constructors

ModuleParseError 

Instances

Instances details
Generic ModuleParseError # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Associated Types

type Rep ModuleParseError 
Instance details

Defined in Development.IDE.Import.DependencyInformation

type Rep ModuleParseError = D1 ('MetaData "ModuleParseError" "Development.IDE.Import.DependencyInformation" "ghcide-2.7.0.0-4RFlm38cSV494413rRqzNs" 'False) (C1 ('MetaCons "ModuleParseError" 'PrefixI 'False) (U1 :: Type -> Type))
Show ModuleParseError # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

NFData ModuleParseError # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Methods

rnf :: ModuleParseError -> () #

type Rep ModuleParseError # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

type Rep ModuleParseError = D1 ('MetaData "ModuleParseError" "Development.IDE.Import.DependencyInformation" "ghcide-2.7.0.0-4RFlm38cSV494413rRqzNs" 'False) (C1 ('MetaCons "ModuleParseError" 'PrefixI 'False) (U1 :: Type -> Type))

newtype TransitiveDependencies #

Constructors

TransitiveDependencies 

Fields

Instances

Instances details
Generic TransitiveDependencies # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Associated Types

type Rep TransitiveDependencies 
Instance details

Defined in Development.IDE.Import.DependencyInformation

type Rep TransitiveDependencies = D1 ('MetaData "TransitiveDependencies" "Development.IDE.Import.DependencyInformation" "ghcide-2.7.0.0-4RFlm38cSV494413rRqzNs" 'True) (C1 ('MetaCons "TransitiveDependencies" 'PrefixI 'True) (S1 ('MetaSel ('Just "transitiveModuleDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [NormalizedFilePath])))
Show TransitiveDependencies # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

NFData TransitiveDependencies # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Methods

rnf :: TransitiveDependencies -> () #

Eq TransitiveDependencies # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

type Rep TransitiveDependencies # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

type Rep TransitiveDependencies = D1 ('MetaData "TransitiveDependencies" "Development.IDE.Import.DependencyInformation" "ghcide-2.7.0.0-4RFlm38cSV494413rRqzNs" 'True) (C1 ('MetaCons "TransitiveDependencies" 'PrefixI 'True) (S1 ('MetaSel ('Just "transitiveModuleDeps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [NormalizedFilePath])))

newtype FilePathId #

For processing dependency information, we need lots of maps and sets of filepaths. Comparing Strings is really slow, so we work with IntMap/IntSet instead and only convert at the edges.

Constructors

FilePathId 

Fields

data NamedModuleDep #

Instances

Instances details
Generic NamedModuleDep # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Associated Types

type Rep NamedModuleDep 
Instance details

Defined in Development.IDE.Import.DependencyInformation

type Rep NamedModuleDep = D1 ('MetaData "NamedModuleDep" "Development.IDE.Import.DependencyInformation" "ghcide-2.7.0.0-4RFlm38cSV494413rRqzNs" 'False) (C1 ('MetaCons "NamedModuleDep" 'PrefixI 'True) (S1 ('MetaSel ('Just "nmdFilePath") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NormalizedFilePath) :*: (S1 ('MetaSel ('Just "nmdModuleName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ModuleName) :*: S1 ('MetaSel ('Just "nmdModLocation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ModLocation)))))
Show NamedModuleDep # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

NFData NamedModuleDep # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Methods

rnf :: NamedModuleDep -> () #

Eq NamedModuleDep # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

type Rep NamedModuleDep # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

type Rep NamedModuleDep = D1 ('MetaData "NamedModuleDep" "Development.IDE.Import.DependencyInformation" "ghcide-2.7.0.0-4RFlm38cSV494413rRqzNs" 'False) (C1 ('MetaCons "NamedModuleDep" 'PrefixI 'True) (S1 ('MetaSel ('Just "nmdFilePath") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NormalizedFilePath) :*: (S1 ('MetaSel ('Just "nmdModuleName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ModuleName) :*: S1 ('MetaSel ('Just "nmdModLocation") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ModLocation)))))

newtype ShowableModuleEnv a #

Instances

Instances details
Show a => Show (ShowableModuleEnv a) # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

NFData a => NFData (ShowableModuleEnv a) # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Methods

rnf :: ShowableModuleEnv a -> () #

data PathIdMap #

Instances

Instances details
Generic PathIdMap # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Associated Types

type Rep PathIdMap 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Show PathIdMap # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

NFData PathIdMap # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

Methods

rnf :: PathIdMap -> () #

type Rep PathIdMap # 
Instance details

Defined in Development.IDE.Import.DependencyInformation

transitiveDeps :: DependencyInformation -> NormalizedFilePath -> Maybe TransitiveDependencies #

returns all transitive dependencies in topological order.

type BootIdMap = FilePathIdMap FilePathId #