cli-utils-4.1.0
LicenseBSD3
Maintainertbidne@gmail.com
Safe HaskellNone
LanguageHaskell2010

CLI.Parsing.Internal

Description

Internal module for CLI parsing.

Synopsis

Documentation

data Acc Source #

Monoid accumulator for CLI

Constructors

Acc 

Fields

Instances

Instances details
Show Acc Source # 
Instance details

Defined in CLI.Parsing.Internal

Methods

showsPrec :: Int -> Acc -> ShowS #

show :: Acc -> String #

showList :: [Acc] -> ShowS #

Semigroup Acc Source # 
Instance details

Defined in CLI.Parsing.Internal

Methods

(<>) :: Acc -> Acc -> Acc #

sconcat :: NonEmpty Acc -> Acc #

stimes :: Integral b => b -> Acc -> Acc #

Monoid Acc Source # 
Instance details

Defined in CLI.Parsing.Internal

Methods

mempty :: Acc #

mappend :: Acc -> Acc -> Acc #

mconcat :: [Acc] -> Acc #

mapStrToEnv :: [Text] -> Maybe (RNonNegative Int) -> String -> Either ParseErr Env Source #

Transforms a list of commands and String into Right Env. Each non-empty, non-comment (comments start with #) line in the map string are expected to have the form key=val. If any parse errors are encountered then Left ParseErr is returned.

pureParseArgs :: [String] -> ParseAnd Acc Source #

Parses arguments into ParseAnd acc.