Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data PackageDownload = PackageDownload {
- pdSHA256 :: !ByteString
- pdUrl :: !ByteString
- pdSize :: !Word64
- newtype HSPackageDownload = HSPackageDownload {}
- data PackageCache = PackageCache {
- pcOffsetSize :: !OffsetSize
- pcDownload :: !(Maybe PackageDownload)
- data PackageCacheMap = PackageCacheMap {
- pcmIdent :: !(Map PackageIdentifier PackageCache)
- pcmSHA :: !(HashMap GitSHA1 OffsetSize)
- data OffsetSize = OffsetSize !Int64 !Int64
- data PackageIndex = PackageIndex {
- indexName :: !IndexName
- indexLocation :: !Text
- indexType :: !IndexType
- indexDownloadPrefix :: !Text
- indexRequireHashes :: !Bool
- newtype IndexName = IndexName {}
- indexNameText :: IndexName -> Text
- data IndexType
- data HackageSecurity = HackageSecurity {
- hsKeyIds :: ![Text]
- hsKeyThreshold :: !Int
Documentation
data PackageDownload Source #
PackageDownload | |
|
newtype HSPackageDownload Source #
Hackage Security provides a different JSON format, we'll have our own JSON parser for it.
data PackageCache Source #
data PackageCacheMap Source #
PackageCacheMap | |
|
data OffsetSize Source #
offset in bytes into the 01-index.tar file for the .cabal file contents, and size in bytes of the .cabal file
PackageIndex, IndexName & IndexLocation
data PackageIndex Source #
Information on a single package index
PackageIndex | |
|
Unique name for a package index
indexNameText :: IndexName -> Text Source #