| Copyright | (c) Alastair Reid, 1999-2003 |
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) |
| Maintainer | libraries@haskell.org |
| Stability | provisional |
| Portability | non-portable (requires concurrency) |
| Safe Haskell | None |
| Language | Haskell98 |
Graphics.HGL.Draw.Monad
Description
The Draw monad, with graphical objects as a special case.
Documentation
Monad for sequential construction of images.
Arguments
| :: Draw a | a pre-operation, whose value is passed to the other two components. |
| -> (a -> Draw b) | a post-operation, to be performed on exit from the bracket, whether normal or by an exception. |
| -> (a -> Draw c) | the drawing action inside the bracket. |
| -> Draw c |
Wrap a drawing action in initialization and finalization actions.
Arguments
| :: Draw a | a pre-operation, whose value is passed to the other two components. |
| -> (a -> Draw b) | a post-operation, to be performed on exit from the bracket, whether normal or by an exception. |
| -> Draw c | the drawing action inside the bracket. |
| -> Draw c |
A variant of bracket in which the inner drawing action does not
use the result of the pre-operation.