cabal-version: 3.0
name: resource-registry
version: 0.3.0.0
synopsis: Track allocated resources
description:
When the scope of a @bracket@ doesn't enclose all uses of the resource, a
'ResourceRegistry' can be used instead to capture the lifetime of those
resources.
license: Apache-2.0
license-files:
LICENSE
NOTICE
author: IOG Engineering Team
maintainer: operations@iohk.io
copyright:
2019-2023 Input Output Global Inc (IOG)
2023-2024 INTERSECT
category: Control
build-type: Simple
bug-reports: https://github.com/IntersectMBO/io-classes-extra/issues
tested-with: ghc ==9.6 || ==9.8 || ==9.10 || ==9.12 || ==9.14
extra-doc-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: https://github.com/IntersectMBO/io-classes-extra
subdir: resource-registry
source-repository this
type: git
location: https://github.com/IntersectMBO/io-classes-extra
subdir: resource-registry
tag: resource-registry-0.3.0.0
common warnings
ghc-options:
-Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wunused-packages
-Wno-unticked-promoted-constructors
library
import: warnings
exposed-modules: Control.ResourceRegistry
build-depends:
base >=4.14 && <4.23,
bimap ^>=0.5,
containers >=0.6.7 && <0.9,
io-classes:{io-classes, strict-stm} >=1.8 && <1.11,
mtl ^>=2.3,
nothunks ^>=0.2 || ^>=0.3,
hs-source-dirs: src
default-language: Haskell2010
default-extensions: ImportQualifiedPost
test-suite resource-registry-test
import: warnings
default-language: Haskell2010
default-extensions: ImportQualifiedPost
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
other-modules:
Test.Util.QSM
Test.Util.SOP
Test.Util.ToExpr
build-depends:
base,
containers,
generics-sop,
io-classes:{io-classes, si-timers, strict-mvar, strict-stm},
mtl,
QuickCheck,
quickcheck-state-machine:no-vendored-treediff,
resource-registry,
tasty,
tasty-quickcheck,
tree-diff,