Integrating Custom Monad with Effect.gen or Creating Custom Free.gen

Hello, is there a interface I can transform my own monad to make it to work with Effect.gen() or create my own Free.gen ?
I have my own instance of Free monad, i would like to do something like:

Free.gen(function*() {
  const computationResult = yield* myComputation();  
  return computationResult + 1;
})
Was this page helpful?