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
{{ message }}
This repository was archived by the owner on Dec 23, 2025. It is now read-only.
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.
It's a common task in IO related code to finalize some
IOaction, e.g. performfile.closeorsocket.closewhen those resources aren't needed anymore. InHttp.leanwe 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 Unitusefunction ofα → IO βMonadinstanceExamples:
It's a bit problematic though given how much typical FP instances are in Mathlib4 - I suspect we might need to depend on it.