hadronized / quaazar

Realtime 3D engine
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Improve Transform creation #100

Closed hadronized closed 9 years ago

hadronized commented 9 years ago

Currently, we depend too much on lens to build Transform and I think that’s wrong. We have to find a way to build them in a simpler way.

A common pattern I find in my daily code is applying several functions by compositing over mempty. I think we could take advantage of that to expose nicer combinators.

hadronized commented 9 years ago

We actually already have those combinators. We just have to create a function like:

buildTransform :: (Transform -> Transform) -> Transform

Because Transform is a Monoid, that function is perfectly safe.