Module

Graphics.CanvasAction.Run

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

#CANVAS Source

type CANVAS = FProxy CanvasActionM

Type alias for using CanvasActionM as an effect

#_canvas Source

_canvas :: SProxy "canvas"

Symbol proxy for "canvas"

#liftCanvasAction Source

liftCanvasAction :: forall r a. CanvasActionM a -> Run (canvas :: CANVAS | r) a

Lift a CanvasActionM into Run via the canvas label

#liftCanvasActionAt Source

liftCanvasActionAt :: forall s r1 r2. IsSymbol s => Cons s CANVAS r1 r2 => SProxy s -> CanvasActionM ~> (Run r2)

Lift a CanvasActionM into Run via the provided label

#runCanvas Source

runCanvas :: forall r. Context2D -> (Run (canvas :: CANVAS, effect :: EFFECT | r)) ~> (Run (effect :: EFFECT | r))

#runCanvasAt Source

runCanvasAt :: forall effect canvas r0 r1 r2. IsSymbol effect => IsSymbol canvas => Cons effect EFFECT r0 r1 => Cons canvas CANVAS r1 r2 => SProxy effect -> SProxy canvas -> Context2D -> (Run r2) ~> (Run r1)

#runBaseCanvas Source

runBaseCanvas :: (Run (canvas :: CANVAS)) ~> CanvasActionM

Runs a base CanvasActionM effect

#runBaseCanvasAt Source

runBaseCanvasAt :: forall s r. IsSymbol s => Cons s CANVAS () r => SProxy s -> (Run r) ~> CanvasActionM

Runs a base CanvasActionM effect at the provided label

#runBaseCanvas' Source

runBaseCanvas' :: (Run (canvas :: CANVAS, effect :: EFFECT)) ~> CanvasActionM

Runs base CanvasActionM and Effect together as one effect

#runBaseCanvasAt' Source

runBaseCanvasAt' :: forall effect canvas r1 r2. IsSymbol effect => IsSymbol canvas => Cons effect EFFECT () r1 => Cons canvas CANVAS r1 r2 => SProxy effect -> SProxy canvas -> (Run r2) ~> CanvasActionM

Runs base CanvasActionM and Effect together as one effect at the provided labels