io-region

Exception safe resource management with dynamic regions https://github.com/Yuras/io-region/wiki

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Yuras Shumovich
Maintained by shumovichy@gmail.com

Region owns resources and automatically frees them on exit. It is a plain old ADT, so it is possible to pass it to functions, put into mutable references, store in regular data types.

Resources can be freed earler or transfered to other regions.

Region itself can be used as any other resource. E.g. one region can own other one.

The library doesn't pretend to solve double throw issue.

Changes

0.1.1

  • fix warnings with ghc-7.10.1