| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
LiveCoding.Gloss.PictureM
Documentation
type PictureT m = ReaderT [Event] (WriterT Picture m) Source #
The monad transformer that captures the effects of gloss, which are reading events and writing pictures.
You can call these effects for example by...
- ...using
askto read the events that occurred, - ...composing a cell with
addPictureto paint a picture.
runPictureT :: Monad m => Cell (PictureT m) a b -> Cell m ([Event], a) (Picture, b) Source #
Run the effects of the gloss monad stack by explicitly passing events and pictures.
module Control.Monad.Trans.Reader