language-bash-0.5.0: Parsing and pretty-printing Bash shell scripts

Safe HaskellSafe-Inferred

Language.Bash.Cond

Description

Bash conditional commands.

Synopsis

Documentation

data CondExpr a Source

Bash conditional expressions.

Constructors

Unary UnaryOp a 
Binary a BinaryOp a 
Not (CondExpr a) 
And (CondExpr a) (CondExpr a) 
Or (CondExpr a) (CondExpr a) 

parseTestExpr :: [String] -> Either ParseError (CondExpr String)Source

Parse a conditional expression for the Bash test builtin.