scion-browser-0.4.3: Command-line interface for browsing and searching packages documentation

Safe HaskellNone
LanguageHaskell98

Scion.PersistentBrowser.Build

Synopsis

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.

runSQL :: FilePath -> SQL a -> IO a Source

Run SQL on the given path