| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | simons@cryp.to |
| Safe Haskell | None |
Distribution.Hackage.DB
Description
This module provides simple access to the Hackage database by means
of Map.
- type Hackage = Map String (Map Version GenericPackageDescription)
- readHackage :: IO Hackage
- readHackage' :: FilePath -> IO Hackage
- parseHackage :: ByteString -> Hackage
- hackagePath :: IO FilePath
- module Data.Map
- module Data.Version
Documentation
readHackage :: IO HackageSource
Read the Hackage database from the location determined by hackagePath
and return a Map that provides fast access to its contents.
readHackage' :: FilePath -> IO HackageSource
parseHackage :: ByteString -> HackageSource
Parse the contents of Hackage's 00-index.tar into a Hackage map.
hackagePath :: IO FilePathSource
Determine the default path of the Hackage database, which typically
resides at $HOME/.cabal/packages/hackage.haskell.org/00-index.tar.
Running the command cabal update will keep that file up-to-date.
module Data.Map
module Data.Version