flocc-pffb

Stabilityexperimental
Maintainerdeveloper@flocc.net
Safe HaskellNone

Compiler.Back.StrTemplates

Description

For more information please see http://www.flocc.net/

Synopsis

Documentation

type StrTem = String

nl :: [Char]

containsNewline :: String -> Bool

containsNl str. Returns True if |nl is in str.

indentString :: String -> String -> String

indentString indent str. Returns str where |indent has been added after every newline.

createT :: String -> StrTem

Creates a new string template

applySingleT :: Text -> (String, String) -> Text

Expands a template with a single value mapping

applyT :: StrTem -> [(String, String)] -> String

Expands a template with an environment of values