| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Heist.Compiled.LowLevel
Contents
Synopsis
- data Promise a
- newEmptyPromise :: forall (n :: Type -> Type) a. HeistT n IO (Promise a)
- getPromise :: forall (n :: Type -> Type) a. Monad n => Promise a -> RuntimeSplice n a
- putPromise :: forall (n :: Type -> Type) a. Monad n => Promise a -> a -> RuntimeSplice n ()
- adjustPromise :: forall (n :: Type -> Type) a. Monad n => Promise a -> (a -> a) -> RuntimeSplice n ()
Lower level promise functions
Promises are used for referencing the results of future runtime computations during load time splice processing.
newEmptyPromise :: forall (n :: Type -> Type) a. HeistT n IO (Promise a) Source #
Creates an empty promise.
getPromise :: forall (n :: Type -> Type) a. Monad n => Promise a -> RuntimeSplice n a Source #
Gets the result of a promised runtime computation.
putPromise :: forall (n :: Type -> Type) a. Monad n => Promise a -> a -> RuntimeSplice n () Source #
Adds a promise to the runtime splice context.
adjustPromise :: forall (n :: Type -> Type) a. Monad n => Promise a -> (a -> a) -> RuntimeSplice n () Source #
Modifies a promise.