b9-0.5.63: A tool and library for building virtual machine images.

Safe HaskellNone
LanguageHaskell2010

B9.Artifact.Content

Description

Content is what is written to files in the generated VM images and cloud configuration.

Contains the monadic actions that generate the content that is written to the generated artifacts.

Since: 0.5.62

Synopsis

Documentation

newtype ContentGeneratorT m a Source #

A monadic action that generates content by using the Environment as additional input, e.g. when interpolating string templates.

Most intersting is the fact the Semigroup and Monoid instances are available.

Since: 0.5.62

Instances
MonadTrans ContentGeneratorT Source # 
Instance details

Defined in B9.Artifact.Content

Methods

lift :: Monad m => m a -> ContentGeneratorT m a #

Monad m => MonadReader Environment (ContentGeneratorT m) Source # 
Instance details

Defined in B9.Artifact.Content

Monad m => Monad (ContentGeneratorT m) Source # 
Instance details

Defined in B9.Artifact.Content

Functor m => Functor (ContentGeneratorT m) Source # 
Instance details

Defined in B9.Artifact.Content

Methods

fmap :: (a -> b) -> ContentGeneratorT m a -> ContentGeneratorT m b #

(<$) :: a -> ContentGeneratorT m b -> ContentGeneratorT m a #

Applicative m => Applicative (ContentGeneratorT m) Source # 
Instance details

Defined in B9.Artifact.Content

Alternative m => Alternative (ContentGeneratorT m) Source # 
Instance details

Defined in B9.Artifact.Content

MonadIO m => MonadIO (ContentGeneratorT m) Source # 
Instance details

Defined in B9.Artifact.Content

Methods

liftIO :: IO a -> ContentGeneratorT m a #

(Monad m, Semigroup a) => Semigroup (ContentGeneratorT m a) Source # 
Instance details

Defined in B9.Artifact.Content

(Monad m, Monoid a) => Monoid (ContentGeneratorT m a) Source # 
Instance details

Defined in B9.Artifact.Content

type ContentGenerator a = ContentGeneratorT B9 a Source #

A B9 action that generates content by using the Environment as additional input, e.g. when interpolating string templates.

Since: 0.5.62

type ByteStringGenerator = ContentGenerator ByteString Source #

A B9 action that procuces a ByteString.

Since: 0.5.62

renderContentGenerator :: Environment -> ContentGenerator a -> B9 a Source #

Execute a ContentGenerator. The Environment contains the bindings of any string template variables.

Since: 0.5.62

class ToContentGenerator c where Source #

Types whose values can be turned into a ContentGenerator

Since: 0.5.62