Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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] # | |
Show EscapingMode Source # | |
Defined in Data.Attoparsec.Args showsPrec :: Int -> EscapingMode -> ShowS # show :: EscapingMode -> String # showList :: [EscapingMode] -> ShowS # | |
Eq EscapingMode Source # | |
Defined in Data.Attoparsec.Args (==) :: EscapingMode -> EscapingMode -> Bool # (/=) :: EscapingMode -> EscapingMode -> Bool # |
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.