Hoogle Search
Within LTS Haskell 24.60 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookupSourcePackageId :: PackageIndex a -> PackageId -> [a]Cabal Distribution.Simple.PackageIndex Does a lookup by source package id (name & version). There can be multiple installed packages with the same source PackageId but different UnitId. They are returned in order of preference, with the most preferred first.
lookupUnitId :: PackageIndex a -> UnitId -> Maybe aCabal Distribution.Simple.PackageIndex Does a lookup by unit identifier. Since multiple package DBs mask each other by UnitId, then we get back at most one package.
lookupKnownProgram :: String -> ProgramDb -> Maybe ProgramCabal Distribution.Simple.Program No documentation available.
lookupProgram :: Program -> ProgramDb -> Maybe ConfiguredProgramCabal Distribution.Simple.Program Try to find a configured program
-
Cabal Distribution.Simple.Program Check that a program is configured and available to be run. Additionally check that the program version number is suitable and return it. For example you could require AnyVersion or orLaterVersion (Version [1,0] []) It returns the configured program, its version number and a possibly updated ProgramDb. If the program could not be configured or the version is unsuitable, it returns an error value.
lookupKnownProgram :: String -> ProgramDb -> Maybe ProgramCabal Distribution.Simple.Program.Db No documentation available.
lookupProgram :: Program -> ProgramDb -> Maybe ConfiguredProgramCabal Distribution.Simple.Program.Db Try to find a configured program
lookupProgramByName :: String -> ProgramDb -> Maybe ConfiguredProgramCabal Distribution.Simple.Program.Db Try to find a configured program
-
Cabal Distribution.Simple.Program.Db Check that a program is configured and available to be run. Additionally check that the program version number is suitable and return it. For example you could require AnyVersion or orLaterVersion (Version [1,0] []) It returns the configured program, its version number and a possibly updated ProgramDb. If the program could not be configured or the version is unsuitable, it returns an error value.
lookupGlobalName :: GhcMonad m => Name -> m (Maybe TyThing)ghc GHC Looks up a global name: that is, any top-level name in any visible module. Unlike lookupName, lookupGlobalName does not use the interactive context, and therefore does not require a preceding setContext.