cli-arguments-strict-0.1.0.0: A library to process command line arguments in some more convenient way.
Copyright(c) OleksandrZhabenko 2021-2022
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010
Extensions
  • Strict
  • StrictData

CLI.Arguments.Sorted.Strict

Description

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

Documentation

takeArgsSortedBy Source #

Arguments

:: (Arguments -> Bool)

A predicate to check which Arguments must be kept in the result.

-> (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] 
-> Args 

takeArgs1SortedBy 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).

-> (Arguments -> Bool)

A predicate to check which Arguments must be kept in the result.

-> (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] 
-> Args 

takeCsSortedBy 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] 
-> Args 

takeCs1SortedBy 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).

-> (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] 
-> Args 

takeBsSortedBy 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] 
-> Args 

takeAsSortedBy 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] 
-> Args