cli-arguments-0.7.0.0: A library to process command line arguments in some more convenient way.
Copyright(c) OleksandrZhabenko 2021-2023
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

CLI.Arguments.Arr

Description

A library to process command line arguments in some more convenient way.

Synopsis

Documentation

takeABCsArr Source #

Arguments

:: (CLSpecifications -> [String] -> Args)

A function to collect the Args

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeCsArr :: CLSpecifications -> [String] -> Array Int Arguments Source #

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeCs1Arr Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeBsArr :: CLSpecifications -> [String] -> Array Int Arguments Source #

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeAsArr :: CLSpecifications -> [String] -> Array Int Arguments Source #

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeABCsArrSortedBy Source #

Arguments

:: ((Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args) 
-> (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeCsArrSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeCs1ArrSortedBy Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification being also the first character.

-> (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeBsArrSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Bs.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeAsArrSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for As.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).