Constructors
FinderCachefcModuleCache :: IORef FinderCacheStatefcFileCache :: IORef FileCacheState
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Moduleghc-9.10.3GHC2021
FinderCachefcModuleCache :: IORef FinderCacheStatefcFileCache :: IORef FileCacheStateThe 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).
Found ModLocation ModuleThe module was found
NoPackage UnitThe requested unit was not found
FoundMultiple [(Module, ModuleOrigin)]_Error_: both in multiple packages
NotFoundNot found
fr_paths :: [FilePath]Places where I looked
fr_pkg :: Maybe UnitJust p => module is in this unit's manifest, but couldn't find the .hi file
fr_unusables :: [UnusableUnit]Module is in these units, but it is unusable
fr_suggestions :: [ModuleSuggestion]Possible mis-spelled modules
Locations and information the finder cares about.
Should be taken from DynFlags via initFinderOpts.
FinderOptsfinder_importPaths :: [FilePath]Where are we allowed to look for Modules and Source files
finder_lookupHomeInterfaces :: Boolfinder_bypassHiFileCheck :: BoolDon't check that an imported interface file actually exists if it can only be at one location. The interface will be reported as InstalledFound even if the file doesn't exist, so this is only useful in specific cases (e.g. to generate dependencies with `ghc -M`)
finder_ways :: Waysfinder_enableSuggestions :: BoolIf we encounter unknown modules, should we suggest modules that have a similar name.
finder_workingDirectory :: Maybe FilePathfinder_thisPackageName :: Maybe FastStringfinder_reexportedModules :: Set ModuleNamefinder_hieDir :: Maybe FilePathfinder_hieSuf :: Stringfinder_hiDir :: Maybe FilePathfinder_hiSuf :: Stringfinder_dynHiSuf :: Stringfinder_objectDir :: Maybe FilePathfinder_objectSuf :: Stringfinder_dynObjectSuf :: Stringfinder_stubDir :: Maybe FilePathShow FinderOptsDefined in ghc-9.10.3 · GHC.Unit.Finder.Types