Build safe and composable teardown sub-routines for resources.
The teardown library allows you to reliably execute cleanup sub-routines for allocated resources. When a program is initialized, it:
Ensures that teardown sub-routines are executed exactly once
Ensures that if errors occur on the execution of a Teardown sub-routine, the error does not propagate to others; bulkheading failure on cleanup.
Requires every sub-routine to be documented at creation time; thus helping tracing your application structure.
Allows tracing the teardown of your application, how is structured, how much time it takes to execute, and what component (if any) failed to finalize.
🗑️ teardown
Composable, idempotent & transparent application resource cleanup sub-routines
Table Of Contents
Installation
Make sure you include the following entry on your cabal file's dependecies section.
library:
build-depends: teardown
Or on your package.yaml
dependencies:
- teardown
Documentation
Development
Follow the developer guidelines
License
Copyright (c) 2017, 2018 Roman Gonzalez
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.