ghc-9.2.1: The GHC API

GHC.Unit.Finder.Types

Synopsis

# Documentation

The FinderCache maps modules to the result of searching for that module. It records the results of searching for modules along the search path. On :load, we flush the entire contents of this cache.

The result of searching for an imported module.

NB: FindResult manages both user source-import lookups (which can result in Module) as well as direct imports for interfaces (which always result in InstalledModule).

Constructors

 Found ModLocation Module The module was found NoPackage Unit The requested unit was not found FoundMultiple [(Module, ModuleOrigin)] _Error_: both in multiple packages NotFound Not found Fieldsfr_paths :: [FilePath]Places where I lookedfr_pkg :: Maybe UnitJust p => module is in this unit's manifest, but couldn't find the .hi filefr_mods_hidden :: [Unit]Module is in these units, but the *module* is hiddenfr_pkgs_hidden :: [Unit]Module is in these units, but the *unit* is hiddenfr_unusables :: [(Unit, UnusableUnitReason)]Module is in these units, but it is unusablefr_suggestions :: [ModuleSuggestion]Possible mis-spelled modules