packages feed

effectful-th-1.0.0.4: effectful-th.cabal

cabal-version:      3.8
build-type:         Simple
name:               effectful-th
version:            1.0.0.4
license:            BSD-3-Clause
license-file:       LICENSE
category:           Control
maintainer:         andrzej@rybczak.net
author:             Andrzej Rybczak
synopsis:           Template Haskell utilities for the effectful library.

description:
  Generate functions for performing operations of dynamically dispatched effects
  via Template Haskell.

extra-source-files:
  CHANGELOG.md
  README.md

tested-with: GHC == { 9.6.7, 9.8.4, 9.10.3, 9.12.4, 9.14.1 }

bug-reports:   https://github.com/haskell-effectful/effectful/issues
source-repository head
  type:     git
  location: https://github.com/haskell-effectful/effectful.git

common language
    ghc-options:        -Wall
                        -Wcompat
                        -Werror=missing-deriving-strategies
                        -Werror=prepositive-qualified-module

    default-language:   GHC2021

    default-extensions: DataKinds
                        DeepSubsumption
                        DerivingStrategies
                        DuplicateRecordFields
                        LambdaCase
                        NoFieldSelectors
                        NoStarIsType
                        OverloadedRecordDot
                        RoleAnnotations
                        TypeFamilies
                        UndecidableInstances

library
    import:         language

    build-depends:    base                >= 4.18      && < 5
                    , containers          >= 0.6
                    , effectful-core      >= 1.0.0.0   && < 3.0.0.0
                    , template-haskell    >= 2.20      && < 2.25
                    , th-abstraction      >= 0.6       && < 0.8

    hs-source-dirs:  src

    exposed-modules: Effectful.TH

test-suite th-tests
    import:         language

    build-depends:    base
                    , effectful-core
                    , effectful-th
                    , template-haskell

    hs-source-dirs: tests

    type:           exitcode-stdio-1.0
    main-is:        ThTests.hs