Module

Graphics.CanvasAction.Types

Package
purescript-canvas-action
Repository
artemisSystem/purescript-canvas-action

#CanvasAction Source

type CanvasAction = ReaderT Context2D Effect

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

#runAction Source

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

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

#CanvasAff Source

type CanvasAff = ReaderT Context2D Aff

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

#runCanvasAff Source

runCanvasAff :: forall m a. MonadAff m => Context2D -> CanvasAff a -> m a

Run a CanvasAff in a MonadAff, on the provided Context2D.