getopt-generics-0.1: Simple command line argument parsing

Safe HaskellNone
LanguageHaskell98

System.Console.GetOpt.Generics

Description

"getopt-generics" tries to make it very simple to create command line argument parsers. Documentation can be found in the README.

Documentation

withArguments :: forall a. (Generic a, HasDatatypeInfo a, All2 Option (Code a)) => (a -> IO ()) -> IO () Source

class Option a where Source

Minimal complete definition

toOption, emptyOption

Methods

toOption :: ArgDescr (FieldState a) Source

emptyOption :: String -> FieldState a Source

accumulate :: a -> a -> a Source