Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
indexLookupEntry :: IndexCallbacks -> DirectoryEntry -> IO (Some IndexEntry, Maybe DirectoryEntry)hackage-security Hackage.Security.Client Look up an entry by DirectoryEntry Since these DirectoryEntrys must come from somewhere (probably from the Directory), it is assumed that they are valid; if they are not, an (unchecked) exception will be thrown. This function also returns the DirectoryEntry of the next file in the index (if any) for the benefit of clients who wish to walk through the entire index.
indexLookupFile :: IndexCallbacks -> forall dec . () => IndexFile dec -> IO (Maybe (IndexEntry dec))hackage-security Hackage.Security.Client Look up an entry by IndexFile Returns Nothing if the IndexFile does not refer to an existing file.
-
hackage-security Hackage.Security.Client Variation if both the DirectoryEntry and the IndexFile are known You might use this when scanning the index using directoryEntries.
-
hackage-security Hackage.Security.Client Get file info (including hash) (wrapper around indexLookupFile)
-
hackage-security Hackage.Security.Client Get the SHA256 hash for a package (wrapper around indexLookupInfo) In addition to the exceptions thrown by indexLookupInfo, this will also throw an exception if the SHA256 is not listed in the FileMap (again, this will not happen with a well-formed Hackage index.)
-
hackage-security Hackage.Security.Client Lookup package metadata (wrapper around indexLookupFile) This will throw an (unchecked) exception if the targets.json file could not be parsed.
targetsLookup :: TargetPath -> Targets -> Maybe FileInfohackage-security Hackage.Security.Client No documentation available.
formatsLookup :: HasFormat fs f -> Formats fs a -> ahackage-security Hackage.Security.Client.Formats No documentation available.
targetsLookup :: TargetPath -> Targets -> Maybe FileInfohackage-security Hackage.Security.Server No documentation available.
tarIndexLookup :: TarIndex -> Path Tar -> Maybe TarIndexEntryhackage-security Hackage.Security.Util.Path No documentation available.