tempered-0.2.0: A dead-simple shell interpolation templating utility

Safe HaskellNone
LanguageHaskell2010

Tempered.Template

Synopsis

Documentation

data Template a Source #

Represents values interspersed with text.

Constructors

Template [Either String a] 

Instances

Show a => Show (Template a) Source # 

Methods

showsPrec :: Int -> Template a -> ShowS #

show :: Template a -> String #

showList :: [Template a] -> ShowS #

data Command Source #

Represents a command to be run by the system.

Constructors

Command String 

Instances

interpTemplate :: (MonadReader EnvVars m, MonadIO m) => Template Command -> m String Source #

Given an execution environment render a template into a string.