cabal-version: 3.0
name: resource-registry
version: 0.1.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 ==8.10 || ==9.2 || ==9.4 || ==9.6 || ==9.8 || ==9.10
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.1.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.21,
bimap ^>=0.5,
containers >=0.6 && <0.8,
io-classes ^>=1.5,
mtl >=2.2 && <2.4,
nothunks ^>=0.2,
strict-stm ^>=1.5,
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:
QuickCheck,
base,
containers,
generics-sop,
io-classes,
mtl,
quickcheck-state-machine:no-vendored-treediff,
resource-registry,
si-timers,
strict-mvar,
strict-stm,
tasty,
tasty-quickcheck,
tree-diff,