mapMaybeM : Monad m => (a -> (Maybe b `m`)) -> List a -> (List b `m`)- Totality: total
Visibility: export filterM : Monad m => (a -> (Bool `m`)) -> List a -> (List a `m`)- Totality: total
Visibility: export ignoreError : Monad m => EitherT err m () -> (() `m`)- Totality: total
Visibility: export eitherIO : HasIO io => (err -> PackErr) -> io (Either err a) -> EitherT PackErr io a Convert an IO action with the potential of failure
to an `EitherT PackErr`.
Totality: total
Visibility: exportfinally : Monad m => EitherT err m () -> EitherT err m a -> EitherT err m a Make sure a *cleanup* action is run after
an IO action that might fail.
Totality: total
Visibility: exportrun : EitherT PackErr IO () -> IO () Runs a *pack* program, printing errors to standard out.
Totality: total
Visibility: exportdispEnv : List EnvVar -> String Display a list of variable-value pairs in the format
`VAR1="val1" VAR2="val2"`.
Totality: total
Visibility: exportsys : HasIO io => CmdArgList -> EitherT PackErr io () Tries to run a system command.
Totality: total
Visibility: exportsysAndLog : HasIO io => Env => LogLevel -> CmdArgList -> EitherT PackErr io () Tries to run a system command while logging its output.
Visibility: exportsysWithEnv : HasIO io => CmdArgList -> List EnvVar -> EitherT PackErr io () Tries to run a system command prefixed with the given
environment variables.
Note: In case of an error, the environment will not be part
of the command listed in the error message. This is a
deliberate choice to declutter Idris output in case of a
failed build. If the environment should be included in the
error message, just prefix `cmd` accordingly and use `sys`.
Totality: total
Visibility: exportsysWithEnvAndLog : HasIO io => Env => LogLevel -> CmdArgList -> List EnvVar -> EitherT PackErr io ()- Visibility: export
sysRun : HasIO io => CmdArgList -> EitherT PackErr io String Tries to run a system command returning its output.
Visibility: exportsysRunWithEnv : HasIO io => CmdArgList -> List EnvVar -> EitherT PackErr io String Tries to run a system command prefixed with the given
environment variables returning its output.
Note: In case of an error, the environment will not be part
of the command listed in the error message. This is a
deliberate choice to declutter Idris output in case of a
failed build. If the environment should be included in the
error message, just prefix `cmd` accordingly and use `sys`.
Visibility: exportexists : HasIO io => Path Abs -> io Bool Checks if a file at the given location exists.
Totality: total
Visibility: exportfileExists : HasIO io => File Abs -> io Bool Checks if a file at the given location exists.
Totality: total
Visibility: exportmissing : HasIO io => Path Abs -> io Bool Checks if a file at the given location is missing.
Totality: total
Visibility: exportfileMissing : HasIO io => File Abs -> io Bool Checks if a file at the given location is missing.
Totality: total
Visibility: exportmkDir : HasIO io => Path Abs -> EitherT PackErr io () Tries to create a director (including parent directories)
Totality: total
Visibility: exportmkParentDir : HasIO io => Path Abs -> EitherT PackErr io () Creates a parent directory of a (file) path
Totality: total
Visibility: exportrmDir : HasIO io => Path Abs -> EitherT PackErr io () Forcefully deletes a directory with all its content
Totality: total
Visibility: exportcurDir : HasIO io => EitherT PackErr io (Path Abs) Returns the current directory's path.
Totality: total
Visibility: exportchgDir : HasIO io => Path Abs -> EitherT PackErr io () Changes the working directory
Totality: total
Visibility: exportinDir : HasIO io => Path Abs -> (Path Abs -> EitherT PackErr io a) -> EitherT PackErr io a Runs an action in the given directory, changing back
to the current directory afterwards.
Totality: total
Visibility: exportentries : HasIO io => Path Abs -> EitherT PackErr io (List Body) Returns the names of entries in a directory
Totality: total
Visibility: exporttomlFiles : HasIO io => Path Abs -> EitherT PackErr io (List Body) Returns the names of toml files in a directory
Totality: total
Visibility: exporthtmlFiles : HasIO io => Path Abs -> EitherT PackErr io (List Body) Returns the names of toml files in a directory
Totality: total
Visibility: exportcurrentEntries : HasIO io => EitherT PackErr io (List Body) Returns the names of entries in the current directory
Totality: total
Visibility: exportcopyDir : HasIO io => Path Abs -> Path Abs -> EitherT PackErr io () Copy a directory.
Totality: total
Visibility: exportcopyDirInto : HasIO io => Path Abs -> Path Abs -> EitherT PackErr io () Copy a whole directory into the given parent directory.
Totality: total
Visibility: exportfindInParentDirs : HasIO io => (Body -> Bool) -> Path Abs -> EitherT PackErr io (Maybe (File Abs)) Tries to find the first file, the body of which returns `True` for
the given predicate.
Totality: total
Visibility: exportfindInAllParentDirs : HasIO io => (Body -> Bool) -> Path Abs -> EitherT PackErr io (List (File Abs)) Tries to find the first file, the body of which return `True` for
the given predicate, in each parent directory.
Totality: total
Visibility: exportwithTmpDir : HasIO io => PackDirs => (TmpDir => EitherT PackErr io a) -> EitherT PackErr io a- Totality: total
Visibility: export rmFile : HasIO io => File Abs -> EitherT PackErr io () Delete a file.
Totality: total
Visibility: exportread : HasIO io => File Abs -> EitherT PackErr io String Tries to read the content of a file
Visibility: exportreadIfExists : HasIO io => File Abs -> String -> EitherT PackErr io String Reads the content of a file if it exists, otherwise
returns the given alternative string.
Visibility: exportwrite : HasIO io => File Abs -> String -> EitherT PackErr io () Tries to write a string to a file.
The file's parent directory is created if
it does not yet exist.
Visibility: exportlink : HasIO io => Path Abs -> File Abs -> EitherT PackErr io () Creates a symbolic link from one path to another,
remove a link at path `to` if there already is one.
Totality: total
Visibility: exportcopyFile : HasIO io => File Abs -> File Abs -> EitherT PackErr io () Copy a file.
Totality: total
Visibility: exportpatch : HasIO io => File Abs -> File Abs -> EitherT PackErr io () Patch a file
Totality: total
Visibility: export