alloca package:resourcet

Perform some allocation, and automatically register a cleanup action. This is almost identical to calling the allocation and then registering the release action, but this properly handles masking of asynchronous exceptions. Since 0.3.0
Perform some allocation where the return value is not required, and automatically register a cleanup action. allocate_ is to allocate as bracket_ is to bracket This is almost identical to calling the allocation and then registering the release action, but this properly handles masking of asynchronous exceptions.
Allocate a resource and register an action with the MonadResource to free the resource.
Unlifted allocate.