packages feed

data-effects-th-0.1.1.0: data-effects-th.cabal

cabal-version:      2.4
name:               data-effects-th
version:            0.1.1.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
license-file:       LICENSE
author:             Yamada Ryo <ymdfield@outlook.jp>
maintainer:         Yamada Ryo <ymdfield@outlook.jp>

-- A copyright notice.
copyright:
    2023 Yamada Ryo,
    2020 Michael Szvetits,
    2010-2011 Patrick Bahr

category: Control, Effect, Template Haskell

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

tested-with:
    GHC == 9.2.8

source-repository head
    type: git
    location: https://github.com/sayo-hs/data-effects
    tag: v0.1.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.0,
        data-effects-core       ^>= 0.1,
        template-haskell        ^>= 2.18,
        th-abstraction          >= 0.4 && < 0.7,
        lens                    ^>= 5.2.3,
        mtl                     ^>= 2.2.2,
        extra                   ^>= 1.7.14,
        containers              ^>= 0.6.5,
        either                  ^>= 5.0.2,
        text                    ^>= 1.2.5,
        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


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,
        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