Name : ghc-options
| |
Version : 1.2.1.1
| Vendor : obs://build_opensuse_org/devel:languages:haskell
|
Release : 3.17
| Date : 2018-03-09 19:40:46
|
Group : Development/Languages/Other
| Source RPM : ghc-options-1.2.1.1-3.17.src.rpm
|
Size : 0.48 MB
| |
Packager : (none)
| |
Summary : A powerful and easy-to-use command-line option parser
|
Description :
The \'options\' package lets library and application developers easily work with command-line options.
The following example is a full program that can accept two options, \'--message\' and \'--quiet\':
\' import Control.Applicative import Options
data MainOptions = MainOptions { optMessage :: String , optQuiet :: Bool }
instance \'Options\' MainOptions where defineOptions = pure MainOptions < *> simpleOption \"message\" \"Hello world!\" \"A message to show the user.\" < *> simpleOption \"quiet\" False \"Whether to be quiet.\"
main :: IO () main = runCommand $ \\opts args -> do if optQuiet opts then return () else putStrLn (optMessage opts) \'
>$ ./hello >Hello world! >$ ./hello --message=\'ciao mondo\' >ciao mondo >$ ./hello --quiet >$
In addition, this library will automatically create documentation options such as \'--help\' and \'--help-all\':
>$ ./hello --help >Help Options: > -h, --help > Show option summary. > --help-all > Show all help options. > >Application Options: > --message :: text > A message to show the user. > default: \"Hello world!\" > --quiet :: bool > Whether to be quiet. > default: false.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/haskell:/lts:/7/SLE_12_SP2_Backports/x86_64 |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
ghc-options
ghc-options(x86-64)
libHSoptions-1.2.1.1-DvKmt92WADIDSbuS7WrmU6-ghc8.0.1.so()(64bit)
Requires :