I changed the way Interpreter works which allows for a more general formulation. The problem with the old combinators was that you couldn't stack your own subscriptions on top of the existing Eff/Aff interpreters, since they were hard coded to no subscriptions. I've added a more general merge combinator that can run two interpreters as a Coproduct, which is what makeApp expects. This means you can do something like:
-- No subscriptions
basicEff `merge` never
-- Custom subscriptions
basicEff `merge` mySubInterpreter
I changed the way
Interpreter
works which allows for a more general formulation. The problem with the old combinators was that you couldn't stack your own subscriptions on top of the existing Eff/Aff interpreters, since they were hard coded to no subscriptions. I've added a more generalmerge
combinator that can run two interpreters as aCoproduct
, which is whatmakeApp
expects. This means you can do something like: