bash-0.1.7: Bash generation library.

Safe HaskellNone

Language.Bash.Syntax

Description

Bash statements and expressions. The statement tree is a functor, supporting arbitrary annotations; this is intended to support analysis of effects and privilege levels as well as commenting and arbitrary code inclusion.

Synopsis

Documentation

data Annotated t Source

The Annotated type captures the annotatedness of a tree of Bash statements. It is Foldable and a Functor.

Constructors

Annotated 

Fields

annotation :: t
 
statement :: Statement t
 

Instances

literal :: ByteString -> Expression tSource

Escape a ByteString to produce a literal expression.

newtype Identifier Source

The type of legal Bash identifiers, strings beginning with letters or _ and containing letters, _ and digits.

Constructors

Identifier ByteString 

identifier :: ByteString -> Maybe IdentifierSource

Produce an Identifier from a ByteString of legal format.

data SpecialVar Source

The names of special variables, with otherwise illegal identifiers, are represented by this type.

newtype FileDescriptor Source

A file descriptor in Bash is simply a number between 0 and 255.

Constructors

FileDescriptor Word8 

data Redirection Source

Redirection "directions".

Constructors

In

Input redirection, <.

Out

Output redirection, >.

Append

Appending output, >>.