-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Simple command line argument parsing -- @package getopt-generics @version 0.1 module System.Console.GetOpt.Generics withArguments :: (Generic a, HasDatatypeInfo a, All2 Option (Code a)) => (a -> IO ()) -> IO () class Option a where accumulate _ x = x toOption :: Option a => ArgDescr (FieldState a) emptyOption :: Option a => String -> FieldState a accumulate :: Option a => a -> a -> a instance Functor FieldState instance Option (Maybe Int) instance Option Int instance Option [String] instance Option (Maybe String) instance Option String instance Option Bool