CurryInfo: opt-parse-3.0.0 / OptParse.flag

definition:
flag :: a -> Mod -> [Parser a]
flag f (Mod o a) = [FlagP (a defaultArgProps) (o defaultOptProps) f]
demand:
argument 2
deterministic:
deterministic operation
documentation:
--- Create a flag.
---
--- @param a result of the parser
--- @param m modifiers for this argument
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,{Mod}) |-> {:}}
name:
flag
precedence:
no precedence defined
result-values:
{:}
signature:
a -> Mod -> [Parser a]
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms