packages feed

resource-registry-0.2.0.0: resource-registry.cabal

cabal-version: 3.0
name: resource-registry
version: 0.2.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
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.2.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.22,
    bimap ^>=0.5,
    containers >=0.6.7 && <0.8,
    io-classes:{io-classes, strict-stm} ^>=1.8,
    mtl ^>=2.3,
    nothunks ^>=0.2,

  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:{io-classes, si-timers, strict-mvar, strict-stm},
    mtl,
    quickcheck-state-machine:no-vendored-treediff,
    resource-registry,
    tasty,
    tasty-quickcheck,
    tree-diff,