ghc-resourcet 1.2.4.3 Deterministic allocation and freeing of scarce resources

ResourceT is a monad transformer which creates a region of code where you can safely allocate resources.