Safe Haskell | None |
---|
Some convenient annotations for Bash scripts, provided with example pretty printer typeclass instances.
- data Lines = Lines [ByteString] [ByteString]
- data Statements a b = Statements (Statement a) (Statement b)
Documentation
Append some raw lines, in flow, above and below a statement.
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.
Statements (Statement a) (Statement b) |
(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) |