language-ninja-0.2.0: A library for dealing with the Ninja build language.

CopyrightCopyright 2017 Awake Security
LicenseApache-2.0
Maintaineropensource@awakesecurity.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Language.Ninja.Pretty

Contents

Description

Rudimentary pretty-printers for various types in language-ninja.

Since: 0.1.0

Synopsis

Pretty-printer for Lexeme

prettyLexemes :: [Lexeme ()] -> Text Source #

Pretty-print a list of Ninja lexemes.

Since: 0.1.0

prettyLexeme :: Lexeme () -> Text Source #

Pretty-print a Ninja lexeme.

Since: 0.1.0

Pretty-printer for AST.Ninja

prettyNinja :: Ninja () -> Text Source #

Pretty-print a Ninja.

Since: 0.1.0

prettyExpr :: Expr () -> Text Source #

Pretty-print an Expr

Since: 0.1.0

prettyRule :: (Text, Rule ()) -> Text Source #

Pretty-print a Ninja rule declaration.

Since: 0.1.0

prettySingle :: (Text, Build ()) -> Text Source #

Pretty-print a Ninja build declaration with one output.

Since: 0.1.0

prettyMultiple :: (HashSet Text, Build ()) -> Text Source #

Pretty-print a Ninja build declaration with multiple outputs.

Since: 0.1.0

prettyPhony :: (Text, HashSet Text) -> Text Source #

Pretty-print a Ninja phony build declaration.

Since: 0.1.0

prettyDefault :: Text -> Text Source #

Pretty-print a Ninja default declaration.

Since: 0.1.0

prettyPool :: (Text, Int) -> Text Source #

Pretty-print a Ninja pool declaration.

Since: 0.1.0

prettyBind :: (Text, Text) -> Text Source #

Pretty-print a Ninja indented binding.

Since: 0.1.0