Copyright | (c) OleksandrZhabenko 2021 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
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 |
-> ([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 |
-> [String] | A list of the first pass command line arguments for the executable after the file names. |
-> String | A parameter for the |
-> 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 |
-> [String] | A list of the first pass command line arguments for the executable after the file names. |
-> String | A parameter for the |
-> 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 |
-> [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 |
-> IO ([FilePath], [Int], [String]) | The result to be obtained if the processment is successful. |
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 |
-> ([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 |
-> [String] | A list of the first pass command line arguments for the executable after the file names. |
-> String | A parameter for the |
-> IO ([FilePath], [Int], [String], Int) | The result to be obtained if the processment is successful. |
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 |
-> IO ExitCode | The result to be obtained. |