Deterministic allocation and freeing of scarce resources.

Version on this page:
LTS Haskell 21.24:1.2.6
Stackage Nightly 2023-12-11:1.3.0
Latest on Hackage:1.3.0

See all snapshots resourcet appears in

BSD-3-Clause licensed by Michael Snoyman
Maintained by
This version can be pinned in stack with:resourcet-,1839

Module documentation for

  • Control
    • Control.Monad
      • Control.Monad.Trans
        • Control.Monad.Trans.Resource
          • Control.Monad.Trans.Resource.Internal
  • Data
    • Data.Acquire
      • Data.Acquire.Internal


Please see the full tutorial on School of Haskell.

This package was originally included with the conduit package, but has existed as a separate package for quite a while. It is fully usable outside of conduit.


monad-control-1.0 support #191


Provide the withEx function to interact nicely with the exceptions package.