Closed angerman closed 10 years ago
Right now it is not possible to do that, but it seems like an interesting idea. I think it is possible to implement that, but we need to think throughoutly about the specification.
@angerman what do you think of this idea: https://github.com/lymar/hastache/commit/1f3b52d49f818c336395b84c7539da6f83e16d57?
I am actually thinking it would be a better idea NOT to define a monoid instance, but just the contextCompose
function.
So, I went ahead and pushed the changes to master. I will be releasing 0.6.1 with composeCtx
function soon, if everything goes smoothly.
Is it possible to merge contexts? Say merge a
mkStringContext
with amkGenericContext
?