multiarg-0.30.0.10: Command lines for options that take multiple arguments

Safe HaskellSafe
LanguageHaskell2010

Multiarg.Limeline

Description

Processes both options and positional arguments. Functions here return both any successful results and any errors. Ordinarily you will not need this module; instead, see Multiarg for most uses or Multiarg.Mode for commands that have more than one mode.

Synopsis

Documentation

data PosArg a #

Constructors

PosArg a 
Instances
Functor PosArg # 
Instance details

Defined in Multiarg.Limeline

Methods

fmap :: (a -> b) -> PosArg a -> PosArg b #

(<$) :: a -> PosArg b -> PosArg a #

Eq a => Eq (PosArg a) # 
Instance details

Defined in Multiarg.Limeline

Methods

(==) :: PosArg a -> PosArg a -> Bool #

(/=) :: PosArg a -> PosArg a -> Bool #

Ord a => Ord (PosArg a) # 
Instance details

Defined in Multiarg.Limeline

Methods

compare :: PosArg a -> PosArg a -> Ordering #

(<) :: PosArg a -> PosArg a -> Bool #

(<=) :: PosArg a -> PosArg a -> Bool #

(>) :: PosArg a -> PosArg a -> Bool #

(>=) :: PosArg a -> PosArg a -> Bool #

max :: PosArg a -> PosArg a -> PosArg a #

min :: PosArg a -> PosArg a -> PosArg a #

Show a => Show (PosArg a) # 
Instance details

Defined in Multiarg.Limeline

Methods

showsPrec :: Int -> PosArg a -> ShowS #

show :: PosArg a -> String #

showList :: [PosArg a] -> ShowS #

interspersed :: [(ShortName, ArgSpec a)] -> [(LongName, ArgSpec a)] -> (String -> a) -> [Word] -> ([Either [Output a] (PosArg a)], Maybe OptName) #

Processes a command line where options are interspersed with positional arguments. A stopper is not returned; all words after a stopper are treated as positional arguments.