process-sequential-0.1.1.0: A test suite for the complex multi files multi level processment.
Copyright(c) OleksandrZhabenko 2021
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

System.Process.Sequential

Description

This library is intended to be a testsuite for some recursive multi file multiprocessment using some system executable that processes multiple files creating the resulting one (the "sox" can be a good example).

The purposes are to avoid leakage of resources if the number of files are too great to be processed at once, to use multiple sequential processment schemes for the same executable and to create to some extent complex processment environment. Nevertheless, there is no guarantees that the test will be successful and such an environment can be created using such a scheme. Please, do not use at the moment in the production without additional thorough testing.

Documentation

seqFlsReadProcessWithExitCode Source #

Arguments

:: FilePath

A name of the executable that must be available inside the variable PATH.

-> Int

A limiting parameter for the number of cycles.

-> (String -> String)

A function to convert the name of the files in the current directory that are sequentially processed.

-> String

A needed symbol sequence to be found firstly to filter the needed files to be processed by the first recursion pass.

-> [Int]

A list of the length of the needed file sequences for the intoRegularSublists function.

-> ([Int] -> [Int])

A function to change the previous parameter at the each step of recursive call.

-> ([String] -> Int -> [String])

A function to change the list of arguments applied after the file names as command line arguments for the executable. An Int is used to additionally control the processment.

-> [String]

A list of the first pass command line arguments for the executable after the file names.

-> String

A parameter for the readProcessWithExitCode -- the last one. Is often [].

-> IO ([FilePath], [Int], [String], Int)

The result to be obtained if the processment is successful.

seqFlsReadProcessWithExitCode1 Source #

Arguments

:: FilePath

A name of the executable that must be available inside the variable PATH.

-> (String -> String)

A function to convert the name of the files in the current directory that are sequentially processed.

-> String

A needed symbol sequence to be found firstly to filter the needed files to be processed by the first recursion pass.

-> [Int]

A list of the length of the needed file sequences for the intoRegularSublists function.

-> [String]

A list of the first pass command line arguments for the executable after the file names.

-> String

A parameter for the readProcessWithExitCode -- the last one. Is often [].

-> IO [FilePath]

The result to be obtained if the processment is successful.

seqFlsReadProcessWithExitCode0 Source #

Arguments

:: FilePath

A name of the executable that must be available inside the variable PATH.

-> (String -> String)

A function to convert the name of the files in the current directory that are sequentially processed.

-> [Int]

A list of the length of the needed file sequences for the intoRegularSublists function.

-> [FilePath]

A list of the files that are processed (the existing ones plus the new one in that order).

-> [String]

A list of the first pass command line arguments for the executable after the file names.

-> String

A parameter for the readProcessWithExitCode -- the last one. Is often [].

-> IO ([FilePath], [Int], [String])

The result to be obtained if the processment is successful.

recursiveApplyFGH Source #

Arguments

:: FilePath

A name of the executable that must be available inside the variable PATH.

-> Int

A limiting parameter for the number of cycles.

-> (String -> String)

A function to convert the name of the files in the current directory that are sequentially processed.

-> [FilePath]

A list of the files that are processed (the existing ones plus the new one in that order).

-> [Int]

A list of the length of the needed file sequences for the intoRegularSublists function.

-> ([Int] -> [Int])

A function to change the previous parameter at the each step of recursive call.

-> ([String] -> Int -> [String])

A function to change the list of arguments applied after the file names as command line arguments for the executable. An Int is used to additionally control the processment.

-> [String]

A list of the first pass command line arguments for the executable after the file names.

-> String

A parameter for the readProcessWithExitCode -- the last one. Is often [].

-> IO ([FilePath], [Int], [String], Int)

The result to be obtained if the processment is successful.

seqFlsHelp1 Source #

Arguments

:: FilePath

A name of the executable that must be available inside the variable PATH.

-> [FilePath]

A list of the files that are processed (the existing ones plus the new one in that order).

-> [String]

A list of the first pass command line arguments for the executable after the file names.

-> String

A parameter for the readProcessWithExitCode -- the last one. Is often [].

-> IO ExitCode

The result to be obtained. ExitSuccess means that the processment was successful.