Safe Haskell | None |
---|---|
Language | Haskell98 |
- saveHackageDatabase :: FilePath -> IO ()
- createHackageDatabase :: FilePath -> IO ([Documented Package], [(FilePath, ParseError)])
- updateDatabase :: FilePath -> Maybe FilePath -> [InstalledPackageInfo] -> IO ()
- createCabalDatabase :: Version -> FilePath -> [PackageIdentifier] -> IO ([Documented Package], [(String, ParseError)])
- getCabalHoogle :: Version -> FilePath -> PackageIdentifier -> Bool -> FilePath -> Manager -> IO (Either ParseError (Documented Package))
- runSQL :: FilePath -> SQL a -> IO a
Documentation
saveHackageDatabase :: FilePath -> IO () Source
Downloads the information for the entire Hackage database and saves it to the specified location.
createHackageDatabase :: FilePath -> IO ([Documented Package], [(FilePath, ParseError)]) Source
Downloads the information for the entire Hackage database creating an in-memory database with it. It needs a temporary directory to work on.
updateDatabase :: FilePath -> Maybe FilePath -> [InstalledPackageInfo] -> IO () Source
Updates a database with changes in the installed package base.
createCabalDatabase :: Version -> FilePath -> [PackageIdentifier] -> IO ([Documented Package], [(String, ParseError)]) Source
Get the database from a set of Cabal packages.
getCabalHoogle :: Version -> FilePath -> PackageIdentifier -> Bool -> FilePath -> Manager -> IO (Either ParseError (Documented Package)) Source
Get the database from a Cabal package.