Module

Graphics.CanvasAction.Types

Package
purescript-canvas-action
Repository
3ddyy/purescript-canvas-action

#CanvasActionM Source

type CanvasActionM = ReaderT Context2D Effect

The CanvasActionM monad is a monad transformer stack, more specifically the ReaderT monad transformer applied to the Effect monad, reading a value of type Context2D.

#CanvasAction Source

type CanvasAction = CanvasActionM Unit

Type synonym for a CanvasActionM without a result

#runAction Source

runAction :: forall m a. MonadEffect m => Context2D -> CanvasActionM a -> m a

Run a CanvasActionM in a MonadEffect, on the provided Context2D.