Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- data Promise a
- newEmptyPromise :: HeistT n IO (Promise a)
- getPromise :: Monad n => Promise a -> RuntimeSplice n a
- putPromise :: Monad n => Promise a -> a -> RuntimeSplice n ()
- adjustPromise :: 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.
getPromise :: Monad n => Promise a -> RuntimeSplice n a Source #
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.