Closed
Description
The context-manipulating functions all return a context in Eff
. However, the original
context is modified by the function. For do notation, this adds the noise of either
void
-ing operations or capturing their values to underscores. I understand there is
purescript-free-canvas but that is not yet in package-sets so I hesitate to use it.
In fact, because of the Graphics.Canvas
API, I originally (wrongly) assumed that I
had to capture each context and pass it to the next operation. In this API, the types
don't tell the story which makes it harder to learn.
I propose that such operations return an Eff Unit
instead of Eff Context2D
. That
is a breaking change, of course, so no PR yet.
Metadata
Metadata
Assignees
Labels
No labels