stackage-install-0.1.2: Secure download of packages for cabal-install

Safe HaskellNone
LanguageHaskell2010

Stackage.Install

Description

Functionality for downloading packages securely for cabal's usage.

Synopsis

Documentation

install :: Settings -> [String] -> IO ExitCode Source #

Run cabal install with --dry-run, determine necessary dependencies, download them, and rerun cabal install without --dry-run.

Since 0.1.0.0

download :: Foldable f => Settings -> f (String, String) -> IO () Source #

Download the given name,version pairs into the directory expected by cabal.

Since 0.1.0.0

data Settings Source #

Settings used by download and install.

Since 0.1.0.0

defaultSettings :: Settings Source #

Default value for Settings.

Since 0.1.0.0

setGetManager :: IO Manager -> Settings -> Settings Source #

Set how to get the connection manager

Default: newManager tlsManagerSettings

Since 0.1.1.0

setPackageLocation :: IO (String -> String -> FilePath) -> Settings -> Settings Source #

Set the location packages are stored to.

Default: defaultPackageLocation

Since 0.1.1.0

defaultPackageLocation :: IO (String -> String -> FilePath) Source #

Get the location that a package name/package version combination is stored on the filesystem.

~.cabalpackageshackage.haskell.orgnameversionname-version.tar.gz

Since 0.1.1.0

setIndexLocation :: IO FilePath -> Settings -> Settings Source #

Set the location the 00-index.tar file is stored.

Default: defaultIndexLocation

Since 0.1.1.0

defaultIndexLocation :: IO FilePath Source #

Get the location that the 00-index.tar file is stored.

~.cabalpackageshackage.haskell.org00-index.tar

Since 0.1.1.0