-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Parses command line arguments -- -- Please see the README on GitHub at -- https://github.com/jlamothe/easy-args#readme @package easy-args @version 0.1.0 -- | This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or (at -- your option) any later version. -- -- This program is distributed in the hope that it will be useful, but -- WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see -- https://www.gnu.org/licenses/. module EasyArgs -- | Defines an argument type data Arg -- | Represents a single dash i.e.: "-" Dash :: Arg -- | Represents a double dash i.e.: "--" DoubleDash :: Arg -- | Represents a single character flag, e.g.: "-a" Flag :: Char -> Arg -- | Represents a multi-character tag, e.g.: "--foo" Tag :: String -> Arg -- | Represents a non-dashed argument, e.g.: "foo" ArgText :: String -> Arg -- | Parses a single argument string to a list of Args parseArg :: String -> [Arg] -- | Parses a list of argument strings to a list of Args parseArgs :: [String] -> [Arg] instance GHC.Show.Show EasyArgs.Arg instance GHC.Classes.Eq EasyArgs.Arg