packages feed

changeset-reflex-0.2: changeset-reflex.cabal

cabal-version: 2.4
name: changeset-reflex
version: 0.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 utilities to propagate changes along @reflex@ events.

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
    DeriveGeneric
    DeriveTraversable
    DerivingStrategies
    FlexibleInstances
    FunctionalDependencies
    GADTs
    KindSignatures
    MultiParamTypeClasses
    NamedFieldPuns
    RankNTypes
    ScopedTypeVariables
    StrictData
    TupleSections
    TypeOperators

library
  import: opts
  exposed-modules:
    Control.Monad.Changeset.Reflex

  build-depends:
    base >=4.16 && <4.23,
    changeset ==0.2,
    containers >=0.6 && <0.8,
    dependent-map ^>=0.4,
    monoid-extras ^>=0.7,
    reflex >=0.8.2.1 && <0.10,
    some ^>=1.0.1,

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