You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a common task in IO related code to finalize some IO action, e.g. perform file.close or socket.close when those resources aren't needed anymore. In Http.lean we need to use it to handle connections. Later it can be a great candidate for a separate lib or stdlib.
I want to break down all of the stuff that MathLib4 provides in a bunch of libraries :S. I'm not sure if it's the right choice but If you want to make it depend on mathlib4 while we don't have an equivalent it's ok.
It's a common task in IO related code to finalize some
IO
action, e.g. performfile.close
orsocket.close
when those resources aren't needed anymore. InHttp.lean
we need to use it to handle connections. Later it can be a great candidate for a separate lib or stdlib.In general it has the following structure:
IO α
α → IO Unit
use
function ofα → IO β
Monad
instanceExamples:
It's a bit problematic though given how much typical FP instances are in Mathlib4 - I suspect we might need to depend on it.
The text was updated successfully, but these errors were encountered: