Open Icelandjack opened 1 year ago
The function
send
dispatches these requests and waits for a reply. It obtains the suspensionk
of the current computation (a return address of typea → VE w r
), passesk
to the user-specified request builderf
obtaining the request body (of the typer (VE w r)
), incorporates it into the requestE
, and delivers it to the waiting admin.
I was reading Oleg's Extensible Effects: An Alternative to Monad Transformers.
The coroutine for arbitrary effects
Eff r
is the same asCodensity (Free r)
.So I wondered if the
send
function had some usefulness in the library,admin
is already a specialization oflowerCodensity
but
send
, producing aCodensity (Free f) a
, is not in the library: