packages feed

changeset-fused-effects-0.2.2: changeset-fused-effects.cabal

cabal-version: 3.0
name: changeset-fused-effects
version: 0.2.2
synopsis: Stateful monad transformer based on monoidal actions
description:
  A general state monad transformer with separate types for the state and the possible changes.
  It can be defined for any monoid action.
  The monoid represents "changes", "updates", "edits" or "diffs" on the state.
  This package exposes the corresponding effect signature for usage in @fused-effects@.

license: MIT
license-file: LICENSE
author: Manuel Bärenz
maintainer: programming@manuelbaerenz.de
copyright: MIT
category: Control
build-type: Simple
extra-doc-files: CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/turion/changeset

flag dev
  description: Enable warnings as errors. Active on ci.
  default: False
  manual: True

common opts
  ghc-options:
    -Wall

  if flag(dev)
    ghc-options:
      -Werror
  default-extensions:
    BangPatterns
    DeriveFunctor
    FlexibleContexts
    FlexibleInstances
    FunctionalDependencies
    GADTs
    KindSignatures
    MultiParamTypeClasses
    NamedFieldPuns
    RankNTypes
    ScopedTypeVariables
    TupleSections
    TypeApplications
    TypeOperators

library
  import: opts
  exposed-modules:
    Control.Effect.Changeset

  build-depends:
    base >=4.16 && <4.23,
    changeset ==0.2.2,
    fused-effects ^>=1.1.2.3,

  hs-source-dirs: src
  default-language: Haskell2010

test-suite changeset-fused-effects-test
  import: opts
  default-language: Haskell2010
  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is: Main.hs
  build-depends:
    base,
    changeset,
    changeset-fused-effects,
    falsify ^>=0.3.0,
    fused-effects,
    monoid-extras,
    tasty ^>=1.4.2,
    tasty-hunit ^>=0.10.2,