ghc-lib-parser-9.8.2.20240223: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Unit.Module.ModSummary

Description

A ModSummary is a node in the compilation manager's dependency graph (ModuleGraph)

Synopsis

Documentation

data ModSummary #

Data for a module node in a ModuleGraph. Module nodes of the module graph are one of:

  • A regular Haskell source module
  • A hi-boot source module

Constructors

ModSummary 

Fields

Instances

Instances details
Outputable ModSummary # 
Instance details

Defined in GHC.Unit.Module.ModSummary

Methods

ppr :: ModSummary -> SDoc #

ms_imps :: ModSummary -> [(PkgQual, Located ModuleName)] #

Textual imports, plus plugin imports but not SOURCE imports.

ms_home_srcimps :: ModSummary -> [Located ModuleName] #

Like ms_home_imps, but for SOURCE imports.

ms_home_imps :: ModSummary -> [(PkgQual, Located ModuleName)] #

All of the (possibly) home module imports from a ModSummary; that is to say, each of these module names could be a home import if an appropriately named file existed. (This is in contrast to package qualified imports, which are guaranteed not to be home imports.)

msDeps :: ModSummary -> [(PkgQual, GenWithIsBoot (Located ModuleName))] #

Returns the dependencies of the ModSummary s.

isBootSummary :: ModSummary -> IsBootInterface #

Did this ModSummary originate from a hs-boot file?

findTarget :: ModSummary -> [Target] -> Maybe Target #

Find the first target in the provided list which matches the specified ModSummary.