packages feed

classy-effects-th-0.1.0.1: classy-effects-th.cabal

cabal-version:      2.4
name:               classy-effects-th
version:            0.1.0.1

-- A short (one-line) description of the package.
synopsis: Automatic compliance with the classy-effects protocols

-- A longer description of the package.
description:
    This package provides Template Haskell functions that enable automatic compliance with CEPs
    (classy-effects protocols), offering a unified framework for defining effects in Haskell.
    .
    CEPs aim to standardize and unify the definition of effects in Haskell in a
    backend-library-agnostic manner. Please refer
    to [CEPs](https://github.com/sayo-hs/classy-effects/blob/master/CEPs/README.md) for details.
    .
    Please also refer to the [classy-effects](https://hackage.haskell.org/package/classy-effects)
    package, which offers standard effect definitions compliant with CEPs.
    .
    __This 'classy-effects' project was abandoned due to the discovery of fundamental difficulties.__
    The reasons are as follows: <https://github.com/orgs/sayo-hs/projects/4?pane=issue&itemId=48547880>
    __As an alternative, consider using 'sayo-hs/data-effects', a GADTs-based common effect representation foundation:__
    <https://github.com/sayo-hs/data-effects>.

-- A URL where users can report bugs.
bug-reports: https://github.com/sayo-hs/classy-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/classy-effects
    tag: v0.1.0
    subdir: classy-effects-th

library
    exposed-modules:
        Control.Effect.Class.Machinery.TH
        Control.Effect.Class.Machinery.TH.Internal
        Control.Effect.Class.Machinery.TH.Send
        Control.Effect.Class.Machinery.TH.Send.Internal
        Data.Effect.Class.TH
        Data.Effect.Class.TH.Internal
        Data.Effect.Class.TH.HFunctor
        Data.Effect.Class.TH.HFunctor.Internal

    -- 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,
        classy-effects-base    ^>= 0.1,
        template-haskell ^>= 2.18,
        th-abstraction ^>= 0.5,
        lens ^>= 5.2.3,
        mtl ^>= 2.2.2,
        extra ^>= 1.7.14

    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:
        DeriveHFunctor

    main-is: Driver.hs
    hs-source-dirs: Example
    build-depends:
        classy-effects-th,
        base,
        classy-effects-base,
        tasty       ^>= 1.4,
        tasty-hunit ^>= 0.10,

    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