Copyright | Copyright 2017 Awake Security |
---|---|
License | Apache-2.0 |
Maintainer | opensource@awakesecurity.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Rudimentary pretty-printers for various types in language-ninja
.
Since: 0.1.0
- prettyLexemes :: [Lexeme ()] -> Text
- prettyLexeme :: Lexeme () -> Text
- prettyNinja :: Ninja () -> Text
- prettyExpr :: Expr () -> Text
- prettyRule :: (Text, Rule ()) -> Text
- prettySingle :: (Text, Build ()) -> Text
- prettyMultiple :: (HashSet Text, Build ()) -> Text
- prettyPhony :: (Text, HashSet Text) -> Text
- prettyDefault :: Text -> Text
- prettyPool :: (Text, Int) -> Text
- prettyBind :: (Text, Text) -> Text
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
Ninja
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