heist-0.13.0.2: An Haskell template system supporting both HTML5 and XML.

Safe HaskellNone

Heist.Compiled.LowLevel

Contents

Synopsis

Lower level promise functions

data Promise a Source

Promises are used for referencing the results of future runtime computations during load time splice processing.

newEmptyPromise :: HeistT n IO (Promise a)Source

Creates an empty promise.

getPromise :: Monad n => Promise a -> RuntimeSplice n aSource

Gets the result of a promised runtime computation.

putPromise :: Monad n => Promise a -> a -> RuntimeSplice n ()Source

Adds a promise to the runtime splice context.

adjustPromise :: Monad n => Promise a -> (a -> a) -> RuntimeSplice n ()Source

Modifies a promise.