-
-
Notifications
You must be signed in to change notification settings - Fork 0
Replace hanlders on localized parts of the computation. #3
Description
In fx-rs our Effect Row is totally customizable, we even have lenses to perform operations on the effect context (Context Adaptation). This talk is about subtituting a handler for specific subparts of the computation, for us handlers are provided via the context, so given a current context type we can replace some part of it while keeping the very same structure .
I believe it is totally possible using fx-rs, perhaps we even have some test that does this. And we should invest some time at implementing smoe demo for it. Particularly because the talk mentions how this can be an alternative to typeclasses.
Also in an experimental branch (somehwere in vic's jj repo) our handlers had tags, and we were able to provide a handler via a tag from far away (far meaning, when the context type has grown, but tags were used to "route" or "locate" specific handlers)