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

Safe HaskellSafe
LanguageHaskell2010

Multiarg.Examples.Telly

Description

Telly is a simple command-line program to test command-line parsers that do not have multiple modes. This includes most command-line programs; you build parsers like this using Multiarg. This module provides an example for documentation purposes; it also provides fodder for the QuickCheck test cases. You will want to look at the source code.

Synopsis

Documentation

data Telly #

A data type to hold the result of command line parsing.

Constructors

PosArg String

Positional argument

Empty

--empty, -e

Single String

--single, -s

Double String String

--double, -d

Triple String String String

--triple, -t

Zero
-0
One String
-1
Two String String
-2
Three String String String
-3
Cero
--cero
Uno String
--uno
Dos String String
--dos
Tres String String String
--tres

Instances

Eq Telly # 

Methods

(==) :: Telly -> Telly -> Bool #

(/=) :: Telly -> Telly -> Bool #

Ord Telly # 

Methods

compare :: Telly -> Telly -> Ordering #

(<) :: Telly -> Telly -> Bool #

(<=) :: Telly -> Telly -> Bool #

(>) :: Telly -> Telly -> Bool #

(>=) :: Telly -> Telly -> Bool #

max :: Telly -> Telly -> Telly #

min :: Telly -> Telly -> Telly #

Show Telly # 

Methods

showsPrec :: Int -> Telly -> ShowS #

show :: Telly -> String #

showList :: [Telly] -> ShowS #