definition:
|
getPackageVersion :: Config -> String -> Version -> ErrorLogger (Maybe Package)
getPackageVersion cfg pkgname ver = do
repo <- getRepoPackagesWithName cfg pkgname
return (findVersion repo pkgname ver)
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Retrieves a package with a given name and version from the repository.
---
--- @param cfg - the current CPM configuration
--- @param pkgname - the package name to be retrieved
--- @param ver - the requested version of the package
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_,_) |-> _}
|
name:
|
getPackageVersion
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
CPM.Config.Config -> String
-> (Prelude.Int, Prelude.Int, Prelude.Int, Prelude.Maybe String)
-> CPM.ErrorLogger.ErrorLogger (Prelude.Maybe CPM.Package.Package)
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|