cabal-install-3.8.1.0: The command-line interface for Cabal and Hackage.
Copyright(c) Andrea Vezzosi 2008
Duncan Coutts 2011
John Millikin 2012
LicenseBSD-like
Maintainercabal-devel@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.Client.Get

Description

The 'cabal get' command.

Synopsis

Documentation

get :: Verbosity -> RepoContext -> GlobalFlags -> GetFlags -> [UserTarget] -> IO () Source #

Entry point for the 'cabal get' command.

Cloning SourceRepos

Mainly exported for testing purposes

clonePackagesFromSourceRepo Source #

Arguments

:: Verbosity 
-> FilePath

destination dir prefix

-> Maybe RepoKind

preferred RepoKind

-> [(PackageId, [SourceRepo])]

the packages and their available SourceRepos

-> IO () 

Given a bunch of package ids and their corresponding available SourceRepos, pick a single SourceRepo for each one and clone into new subdirs of the given directory.