-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A dead-simple shell interpolation templating utility -- -- A dead-simple shell interpolation templating utility @package tempered @version 0.2.0 module Tempered.Options type EnvVars = [(String, String)] -- | Given a directory tries to find env.yaml recursively upwards; parses -- EnvMap from the file if found. getProjectOptions :: FilePath -> IO EnvMap module Tempered.Template -- | Represents values interspersed with text. data Template a Template :: [Either String a] -> Template a -- | Represents a command to be run by the system. data Command Command :: String -> Command -- | Given an execution environment render a template into a string. interpTemplate :: (MonadReader EnvVars m, MonadIO m) => Template Command -> m String instance GHC.Show.Show Tempered.Template.Command instance GHC.Show.Show a => GHC.Show.Show (Tempered.Template.Template a) module Tempered.Parser -- | Parse a template from a file. templateFromFile :: FilePath -> IO (Either ParseError (Template Command)) -- | Parse a template from a string with a given filename for errors. parseTemplate :: FilePath -> String -> Either ParseError (Template Command) -- | Fail if parsing errors occurred, otherwise return the template. handleTemplateError :: Either ParseError (Template a) -> IO (Template a)