trial-optparse-applicative-0.0.0.0: Trial helper functions for optparse-applicative

Copyright(c) 2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Trial.OptparseApplicative

Description

Trial helper functions for optparse-applicative.

Synopsis

Documentation

trialParser Source #

Arguments

:: (Semigroup e, IsString e) 
=> String

Name

-> Parser a 
-> Parser (Trial e a) 

Parser for Trial data structure. It uses the provided name for better Warnings and Errors.

Since: 0.0.0.0

taggedTrialParser Source #

Arguments

:: (Semigroup e, IsString e) 
=> String

Option name

-> Parser a 
-> Parser (TaggedTrial e a) 

Similar to trialParser but returns TaggedTrial with the tag CLI.

Parser for TaggedTrial data structure. It uses the providedname for better Warnings and Errors.

Since: 0.0.0.0

trialOption Source #

Arguments

:: (Semigroup e, IsString e) 
=> String

Option long name

-> ReadM a 
-> Parser (Trial e a) 

Parser for Trial data structure. It uses the provided option long name for better Warnings and Errors.

Since: 0.0.0.0

taggedTrialOption Source #

Arguments

:: (Semigroup e, IsString e) 
=> String

Option long name

-> ReadM a 
-> Parser (TaggedTrial e a) 

Similar to trialOption but returns TaggedTrial with the tag CLI.

Parser for TaggedTrial data structure. It uses the provided option long name for better Warnings and Errors.

Since: 0.0.0.0