Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- newtype ContentGeneratorT m a = MkContentGeneratorT (EnvironmentReaderT m a)
- type ContentGenerator a = ContentGeneratorT B9 a
- type ByteStringGenerator = ContentGenerator ByteString
- renderContentGenerator :: Environment -> ContentGenerator a -> B9 a
- class ToContentGenerator c where
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
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
toContentGenerator :: c -> ByteStringGenerator Source #
Instances
ToContentGenerator Content Source # | |
Defined in B9.Artifact.Content.Readable |