lambda-options-1.1.0.0: Declarative command-line parser with type-driven pattern matching.

Safe HaskellSafe
LanguageHaskell2010

Text.LambdaOptions.Example.Example_2_Constructors

Description

View my source code to see example.

Synopsis

Documentation

main :: IO () Source #

Try with these succeeding examples:

:main --foo 1 abc
:main --bar
:main --bar 4 5 6
:main --baz
:main --foo 1 abc --bar 4 5 6 --baz
:main --baz --bar 4 5 6 --foo 1 abc

Also try with these failing examples:

:main --foo abc
:main --foo 1.5 abc
:main --bar a b c