Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
ask
to read the events that occurred, - ...composing a cell with
addPicture
to 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