Safe Haskell | None |
---|---|
Language | Haskell2010 |
Parsing of stack command line arguments
Synopsis
- data EscapingMode
- argsParser :: EscapingMode -> Parser [String]
- parseArgs :: EscapingMode -> Text -> Either String [String]
- parseArgsFromString :: EscapingMode -> String -> Either String [String]
Documentation
data EscapingMode Source #
Mode for parsing escape characters.
Instances
Enum EscapingMode Source # | |
Defined in Data.Attoparsec.Args succ :: EscapingMode -> EscapingMode # pred :: EscapingMode -> EscapingMode # toEnum :: Int -> EscapingMode # fromEnum :: EscapingMode -> Int # enumFrom :: EscapingMode -> [EscapingMode] # enumFromThen :: EscapingMode -> EscapingMode -> [EscapingMode] # enumFromTo :: EscapingMode -> EscapingMode -> [EscapingMode] # enumFromThenTo :: EscapingMode -> EscapingMode -> EscapingMode -> [EscapingMode] # | |
Eq EscapingMode Source # | |
Defined in Data.Attoparsec.Args (==) :: EscapingMode -> EscapingMode -> Bool # (/=) :: EscapingMode -> EscapingMode -> Bool # | |
Show EscapingMode Source # | |
Defined in Data.Attoparsec.Args showsPrec :: Int -> EscapingMode -> ShowS # show :: EscapingMode -> String # showList :: [EscapingMode] -> ShowS # |
argsParser :: EscapingMode -> Parser [String] Source #
A basic argument parser. It supports space-separated text, and string quotation with identity escaping: x -> x.
parseArgs :: EscapingMode -> Text -> Either String [String] Source #
Parse arguments using argsParser
.
parseArgsFromString :: EscapingMode -> String -> Either String [String] Source #
Parse using argsParser
from a string.