CurryInfo: cpm-3.3.0 / CPM.PackageCache.Global.copyPackage

definition:
copyPackage :: Config -> Package -> String -> ErrorLogger ()
copyPackage cfg pkg dir = do
  exists <- liftIOEL $ doesDirectoryExist srcDir
  if not exists
    then fail $ "Package '" ++ packageId pkg ++ "' not installed"
    else liftIOEL (copyDirectory srcDir dir) >> return ()
 where
  srcDir = installedPackageDir cfg pkg
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
--- Copy a package version to a directory.
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_,_) |-> _}
name:
copyPackage
precedence:
no precedence defined
result-values:
_
signature:
CPM.Config.Config -> CPM.Package.Package -> String
-> CPM.ErrorLogger.ErrorLogger ()
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term