Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- progTitle :: Text
- main :: IO ()
- data LitArgs = LitArgs {
- argSwitch1 :: Bool
- argFlag1 :: String
- argInFile1 :: String
- cmdArgs :: Parser LitArgs
- data Inputs = Inputs {}
- mainExample :: (MonadIO m, Show a) => a -> m ()
- parseArgs2input :: Text -> Text -> Text -> ErrIO Inputs
- getArgsParsed :: Text -> Text -> ErrIO LitArgs
Documentation
the command line arguments raw number of args must correspond in order and number with the command arguments described in the parser
LitArgs | |
|
cmdArgs :: Parser LitArgs Source #
strings which have no default result in enforced arguments order and type of arguments must correspod to LitArgs
the arguments in the program usable format
mainExample :: (MonadIO m, Show a) => a -> m () Source #