bash-0.1.5: Bash generation library.

Safe HaskellNone

Language.Bash.Annotations

Description

Some convenient annotations for Bash scripts, provided with example pretty printer typeclass instances.

Synopsis

Documentation

data Lines Source

Append some raw lines, in flow, above and below a statement.

Constructors

Lines [ByteString] [ByteString] 

data Statements a b Source

Annotate a statement with statements of different types, with special rules for empty NoOp statements -- as long as the ByteString "comment" in the NoOp is empty, the NoOp is simply elided.

Constructors

Statements (Statement a) (Statement b) 

Instances

(Eq a, Eq b) => Eq (Statements a b) 
(Eq (Statements a b), Ord a, Ord b) => Ord (Statements a b) 
(Show a, Show b) => Show (Statements a b) 
(Annotation a, Annotation b) => Annotation (Statements a b)