- data Type a = Type {}
- optional :: a -> Type a -> Type a
- string :: Type String
- boolean :: Type Bool
- directory :: Type FilePath
- file :: Type FilePath
- device :: Type FilePath
- natural :: Type Integer
- integer :: Type Integer
- option :: (a -> s) -> [Char] -> [String] -> Type a -> String -> OptDescr (Either String s)
Documentation
A Type a
represents the type of an option or argument.
Further below you can find some common types of option arguments.
Type | |
|
Argument types
Option descriptions
:: (a -> s) | Function that creates a setting (of type |
-> [Char] | List of short option characters. |
-> [String] | List of long option strings. |
-> Type a | Type of option argument. |
-> String | Description. |
-> OptDescr (Either String s) | The resulting option description. |
Create an option description. You need this to describe the options your
command uses; see System.Console.Command.Command
.