-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A library to process command line arguments in some more convenient way. -- -- Uses three types of the command line arguments and order of their -- parsing. Usually firstly the framed by some string delimiter (the -- different ones) are parsed, then the groups of arguments and then the -- rest single-field arguments. All these groups must be not nested one -- into the others. @package cli-arguments @version 0.5.0.0 -- | A library to process command line arguments in some more convenient -- way. module CLI.Arguments data Arguments A :: String -> Arguments B :: GQtyArgs -> Delimiter -> [String] -> Arguments C :: Delimiter -> [String] -> Arguments type Args = [Arguments] type Specification = (Delimiter, GQtyArgs) type CLSpecifications = [Specification] type Delimiter = String type GQtyArgs = Int type FirstCharacter = Char type FirstChars = (Char, Char) isA :: Arguments -> Bool isB :: Arguments -> Bool isC :: Arguments -> Bool nullArguments :: Arguments -> Bool notNullArguments :: Arguments -> Bool b1Args2AArgs :: Arguments -> Arguments args2Args :: CLSpecifications -> [String] -> Args args2Args3' :: (Args, Args, Args) -> CLSpecifications -> [String] -> (Args, Args, Args) args2Args3 :: CLSpecifications -> [String] -> (Args, Args, Args) args2Args1 :: FirstChars -> CLSpecifications -> [String] -> Args args2Args3'1 :: FirstChars -> (Args, Args, Args) -> CLSpecifications -> [String] -> (Args, Args, Args) args2Args31 :: FirstChars -> CLSpecifications -> [String] -> (Args, Args, Args) -- | This function can actually parse the command line arguments being the -- [String]. args2ArgsFilteredG :: (Arguments -> Bool) -> CLSpecifications -> [String] -> Args -- | This function can actually parse the command line arguments being the -- [String]. args2ArgsFilteredG1 :: FirstChars -> (Arguments -> Bool) -> CLSpecifications -> [String] -> Args -- | This function can actually parse the command line arguments being the -- [String]. args2ArgsFiltered :: CLSpecifications -> [String] -> Args takeCs :: CLSpecifications -> [String] -> Args takeCs1 :: FirstChars -> CLSpecifications -> [String] -> Args takeBs :: CLSpecifications -> [String] -> Args takeAs :: CLSpecifications -> [String] -> Args takeArgsSortedBy :: (Arguments -> Bool) -> (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args takeArgs1SortedBy :: FirstChars -> (Arguments -> Bool) -> (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args takeCsSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args takeCs1SortedBy :: FirstChars -> (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args takeBsSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args takeAsSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args instance GHC.Classes.Eq CLI.Arguments.Arguments instance GHC.Show.Show CLI.Arguments.Arguments -- | A library to process command line arguments in some more convenient -- way. module CLI.Arguments.Arr -- | 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). takeABCsArr :: (CLSpecifications -> [String] -> 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 -- | 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 :: FirstChars -> 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 -- | 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 -- | 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 :: ((Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args) -> (Arguments -> Arguments -> Ordering) -> 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 :: (Arguments -> Arguments -> Ordering) -> 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 :: FirstChars -> (Arguments -> Arguments -> Ordering) -> 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 :: (Arguments -> Arguments -> Ordering) -> 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 :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Array Int Arguments -- | A library to process command line arguments in some more convenient -- way. module CLI.Arguments.Get oneA :: Foldable t => String -> t Arguments -> Bool oneB :: Foldable t => String -> t Arguments -> Bool oneC :: Foldable t => String -> t Arguments -> Bool listA :: Foldable t => [String] -> t Arguments -> Bool listB :: Foldable t => [String] -> t Arguments -> Bool listC :: Foldable t => [String] -> t Arguments -> Bool getA :: Foldable t => String -> t Arguments -> String getB :: Foldable t => String -> t Arguments -> [String] getC :: Foldable t => String -> t Arguments -> [String] getLstA :: Foldable t => [String] -> t Arguments -> [String] getLstB :: Foldable t => [String] -> t Arguments -> [[String]] getLstC :: Foldable t => [String] -> t Arguments -> [[String]] -- | A library to process command line arguments in some more convenient -- way. module CLI.Arguments.Parsing args2ArgsR :: CLSpecifications -> (Args, [String]) -> (Args, [String]) args2ArgsR0 :: CLSpecifications -> [String] -> (Args, [String]) args2Args3'R :: CLSpecifications -> (Args, Args, Args, [String]) -> (Args, Args, Args, [String]) args2Args3R :: CLSpecifications -> [String] -> (Args, Args, Args, [String]) args2Args1R :: FirstChars -> CLSpecifications -> (Args, [String]) -> (Args, [String]) args2Args3'1R :: FirstChars -> CLSpecifications -> (Args, Args, Args, [String]) -> (Args, Args, Args, [String]) args2Args31R :: FirstChars -> CLSpecifications -> [String] -> (Args, Args, Args, [String]) -- | This function can actually parse the command line arguments being the -- [String]. args2ArgsFilteredGR :: (Arguments -> Bool) -> CLSpecifications -> (Args, [String]) -> (Args, [String]) -- | This function can actually parse the command line arguments being the -- [String]. args2ArgsFilteredG1R :: FirstChars -> (Arguments -> Bool) -> CLSpecifications -> (Args, [String]) -> (Args, [String]) takeCsR :: CLSpecifications -> [String] -> (Args, [String]) takeCs1R :: FirstChars -> CLSpecifications -> [String] -> (Args, [String]) takeBsR :: CLSpecifications -> [String] -> (Args, [String]) takeAsR :: CLSpecifications -> [String] -> (Args, [String])