@hackage scoped-codensity0.2.0.0

CPS resource allocation but as a Monad and completely safe

  • Installation

  • Dependencies (7)

  • Dependents (0)

  • Package Flags

      core
       (off by default)

      If set, only includes dependencies that are the bare minimum needed for this library

This implements a Monad just like Codensity from the `kan-extensions` package, but it uses a skolem trap just like the `ST s` monad to track resources allocated in the monad. The package wraps around different "scoped" resources that cannot escape a scoped block and are safely deallocated when the block is left.