stack-0.1.6.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Data.Attoparsec.Args

Description

Parsing argument-like things.

Synopsis

Documentation

argsParser :: EscapingMode -> Parser Text [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.

withInterpreterArgs :: String -> ([String] -> Bool -> IO a) -> IO a Source

Use withArgs on result of getInterpreterArgs.