definition:
|
tryFindPackage :: GlobalCache -> String -> Version -> ErrorLogger Package
tryFindPackage gc name ver = case findVersion gc name ver of
Just pkg -> return pkg
Nothing -> fail $ "Package " ++ name ++ "-" ++ showVersion ver ++
" could not be found."
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Tries to find a package in the global package cache.
|
failfree:
|
(_, _, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_,_) |-> _}
|
name:
|
tryFindPackage
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
GlobalCache -> String
-> (Prelude.Int, Prelude.Int, Prelude.Int, Prelude.Maybe String)
-> CPM.ErrorLogger.ErrorLogger CPM.Package.Package
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|