packages feed

retry-effectful-0.1.0.1: retry-effectful.cabal

cabal-version:      3.0
name:               retry-effectful
version:            0.1.0.1
category:           Control
stability:          experimental
synopsis:           Adaptation of the retry library for the effectful ecosystem.
description:
  Adaptation of the @<https://hackage.haskell.org/package/retry retry>@ library for the @<https://hackage.haskell.org/package/effectful effectful>@ ecosystem.

bug-reports:        https://github.com/change-metrics/retry-effectful/issues
homepage:           https://github.com/change-metrics/retry-effectful#readme
author:             Tristan de Cacqueray
maintainer:         tdecacqu@redhat.com
copyright:          2022 Red Hat
license:            BSD-3-Clause
license-file:       LICENSE.md
build-type:         Simple
extra-source-files:
  CHANGELOG.md
  README.md

source-repository head
  type:     git
  location: https://github.com/change-metrics/retry-effectful

common common
  ghc-options:
    -Weverything -Wno-redundant-constraints -Wno-implicit-prelude
    -Wno-missing-import-lists -Wno-safe -Wno-unsafe
    -Wno-missing-safe-haskell-mode -Wno-missing-local-signatures

  if impl(ghc >=9.2)
    ghc-options: -Wno-missing-kind-signatures
  if impl(ghc >=9.8)
    ghc-options: -Wno-missing-role-annotations -Wno-unticked-promoted-constructors -Wno-all-missed-specialisations

  default-language: Haskell2010

library
  import:          common
  hs-source-dirs:  src
  exposed-modules: Effectful.Retry
  build-depends:
    , base            <5
    , effectful-core  >=1.0 && <5.0
    , exceptions
    , retry           >=0.9.3

test-suite retry-effectful-test
  import:         common
  ghc-options:    -rtsopts -threaded -with-rtsopts=-N
  type:           exitcode-stdio-1.0
  main-is:        Main.hs
  hs-source-dirs: test
  build-depends:
    , base            <5
    , effectful-core  >=1.0 && <5.0
    , retry-effectful
    , tasty           >=1.4.2
    , tasty-hunit     >=0.10