I am quite new to Haskell, but there is some idea, I have. I would like to know if it's worth to implement it (if it's consistent with recommended Haskell style and if it isn't already done).
I am thinking about a library that would feature a pure, abstract canvas object. It would work like this:
- The object would be immutable. Drawing on it would create a new canvas (implemented as list construction).
- It would be completely 开发者_运维知识库abstract list of shapes independent from any actual renderer.
- There will be renderers able to transform this abstract canvas to bitmap and vector formats. This would be the only impure operation needed when working with this library.
What do you think? If I receive approval from some seasoned haskellist I would give it a try.
精彩评论