Maintainer | simons@cryp.to |
---|---|
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- type HackageDB = Map PackageName PackageData
- type PackageData = Map Version VersionData
- data VersionData = VersionData {}
- readTarball :: Maybe UTCTime -> FilePath -> IO HackageDB
- parseTarball :: MonadThrow m => Maybe UTCTime -> Entries FormatError -> m HackageDB
- hackageTarball :: IO FilePath
Documentation
type HackageDB = Map PackageName PackageData Source #
type PackageData = Map Version VersionData Source #
data VersionData Source #
Instances
parseTarball :: MonadThrow m => Maybe UTCTime -> Entries FormatError -> m HackageDB Source #
hackageTarball :: IO FilePath Source #
Determine the default path of the Hackage database, which typically
resides in $HOME/.cabal/packages/hackage.haskell.org/
.
Running the command cabal update
or cabal v2-update
will keep the index
up-to-date.
See cabalStateDir
on how hackage-db
searches for the cabal state directory.