packages feed

polysemy-managed-0.1.0.0: polysemy-managed.cabal

cabal-version: 2.2

name:                   polysemy-managed
version:                0.1.0.0
synopsis:               Primitive functions and data types
description:            Primitive functions and data types.
category:               Data
stability:              Experimental
homepage:               http://github.com/haskell-works/polysemy-managed#readme
bug-reports:            https://github.com/haskell-works/polysemy-managed/issues
author:                 John Ky
maintainer:             newhoggy@gmail.com
copyright:              2016-2021 John Ky
license:                BSD-3-Clause
license-file:           LICENSE
tested-with:            GHC == 9.2.2, GHC == 9.0.2, GHC == 8.10.7
build-type:             Simple
extra-source-files:     README.md

source-repository head
  type:                 git
  location:             https://github.com/haskell-works/polysemy-managed

flag bounds-checking-enabled
  description:          Enable bmi2 instruction set
  manual:               False
  default:              False

common base                       { build-depends: base                       >= 4.11       && < 5      }

common doctest                    { build-depends: doctest                    >= 0.16.2     && < 0.21   }
common doctest-discover           { build-depends: doctest-discover           >= 0.2        && < 0.3    }
common exceptions                 { build-depends: exceptions                 >= 0.8        && < 0.11   }
common hedgehog                   { build-depends: hedgehog                   >= 1.0        && < 1.2    }
common hspec                      { build-depends: hspec                      >= 2.4        && < 2.10   }
common hw-hspec-hedgehog          { build-depends: hw-hspec-hedgehog          >= 0.1        && < 0.2    }
common mtl                        { build-depends: mtl                        >= 2.2.2      && < 2.3    }
common polysemy                   { build-depends: polysemy                   >= 1.7.1.0    && < 1.8    }
common resourcet                  { build-depends: resourcet                  >= 1.2.5      && < 1.3    }
common transformers               { build-depends: transformers               >= 0.4        && < 0.7    }
common unliftio-core              { build-depends: unliftio-core              >= 0.1.2.0    && < 0.3    }

common polysemy-managed
  build-depends:        polysemy-managed

common config
  default-language:     Haskell2010
  default-extensions:   ImportQualifiedPost
  ghc-options:          -Wall
  if flag(bounds-checking-enabled)
    cpp-options:        -DBOUNDS_CHECKING_ENABLED

library
  import:               base, config
                      , polysemy
                      , resourcet
                      , transformers
                      , unliftio-core
  exposed-modules:      Polysemy.Managed
  other-modules:        Paths_polysemy_managed
  autogen-modules:      Paths_polysemy_managed
  hs-source-dirs:       src

test-suite polysemy-managed-test
  import:               base, config
                      , exceptions
                      , hedgehog
                      , hspec
                      , hw-hspec-hedgehog
                      , mtl
                      , polysemy-managed
                      , polysemy
                      , resourcet
                      , transformers
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  other-modules:        Polysemy.ManagedSpec
  hs-source-dirs:       test
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  build-tool-depends:   hspec-discover:hspec-discover