packages feed

data-effects-th-0.2.0.0: data-effects-th.cabal

cabal-version:      2.4
name:               data-effects-th
version:            0.2.0.0

-- A short (one-line) description of the package.
synopsis: Template Haskell utilities for the data-effects library.

-- A longer description of the package.
description:
    TemplateHaskell functions for deriving effect invocation
    functions, [HFunctor](https://hackage.haskell.org/package/data-effects-core-0.1.0.0/docs/Data-Effect-HFunctor.html#t:HFunctor)
    instances, and more from the definition of effects
    with [data-effects](https://hackage.haskell.org/package/data-effects)-based GADT representations.

-- A URL where users can report bugs.
bug-reports: https://github.com/sayo-hs/data-effects

-- The license under which the package is released.
license:            MPL-2.0 AND BSD-3-Clause
license-file:       LICENSE
author:             Sayo Koyoneda <ymdfield@outlook.jp>
maintainer:         Sayo Koyoneda <ymdfield@outlook.jp>

-- A copyright notice.
copyright:
    2023-2024 Sayo Koyoneda,
    2020 Michael Szvetits,
    2010-2011 Patrick Bahr

category: Control, Effect, Template Haskell

extra-doc-files:
    ChangeLog.md
    NOTICE
    README.md

tested-with:
    GHC == 9.8.2
    GHC == 9.4.1
    GHC == 9.2.8

source-repository head
    type: git
    location: https://github.com/sayo-hs/data-effects
    tag: v0.2.0
    subdir: data-effects-th

library
    exposed-modules:
        Data.Effect.HFunctor.TH
        Data.Effect.HFunctor.TH.Internal
        Data.Effect.TH.Internal
        Data.Effect.TH
        Data.Effect.Key.TH

    -- Modules included in this executable, other than Main.
    -- other-modules:

    -- LANGUAGE extensions used by modules in this package.
    -- other-extensions:
    build-depends:
        base                    >= 4.16.4 && < 4.21,
        data-effects-core       ^>= 0.2,
        template-haskell        >= 2.18 && < 2.23,
        th-abstraction          >= 0.4 && < 0.8,
        lens                    >= 5.2.3 && < 5.4,
        mtl                     >= 2.2.2 && < 2.4,
        extra                   ^>= 1.7.14,
        containers              >= 0.6.5 && < 0.8,
        either                  ^>= 5.0.2,
        text                    >= 2.0 && < 2.2,
        data-default            ^>= 0.7.1,
        infinite-list           ^>= 0.1.1,
        formatting              ^>= 7.2.0,

    hs-source-dirs:   src
    ghc-options:      -Wall
    default-language: GHC2021

    default-extensions:
        LambdaCase,
        DerivingStrategies,
        DataKinds,
        TypeFamilies,
        BlockArguments,
        FunctionalDependencies,
        RecordWildCards,
        DefaultSignatures,
        PatternSynonyms


test-suite Example
    other-modules:
        Example

    main-is: Driver.hs
    hs-source-dirs: Example
    build-depends:
        data-effects-th,
        base,
        data-effects-core,
        tasty       >= 1.4 && < 1.6,
        tasty-hunit ^>= 0.10,
        data-default,
        infinite-list,

    type: exitcode-stdio-1.0

    build-tool-depends:
        tasty-discover:tasty-discover

    default-language: GHC2021
    ghc-options:      -Wall

    default-extensions:
        LambdaCase,
        DerivingStrategies,
        DataKinds,
        TypeFamilies,
        BlockArguments,
        FunctionalDependencies,
        RecordWildCards,
        DefaultSignatures