Dependency injection via delimited continuations