packages feed

concurrent-state-0.6.0.0: concurrent-state.cabal

name:                concurrent-state
version:             0.6.0.0
synopsis:            MTL-like library using TVars
description:         Writer, State, RWS backed by TVar
homepage:            https://github.com/joelteon/concurrent-state
license:             MIT
license-file:        LICENSE
author:              Joel Taylor
maintainer:          me@joelt.io
category:            Control
build-type:          Simple
cabal-version:       >=1.10
extra-source-files:  changelog

-- Enable building of examples
Flag examples
  default: False
  manual:  True

library
  exposed-modules:     Control.Concurrent.Lifted.Fork
                       Control.Monad.State.Concurrent
                       Control.Monad.State.Concurrent.Lazy
                       Control.Monad.State.Concurrent.Strict
                       Control.Monad.RWS.Concurrent
                       Control.Monad.RWS.Concurrent.Lazy
                       Control.Monad.RWS.Concurrent.Strict
                       Control.Monad.Writer.Concurrent
                       Control.Monad.Writer.Concurrent.Lazy
                       Control.Monad.Writer.Concurrent.Strict
  build-depends:       base         >= 4.2 && < 4.8
                     , exceptions   >= 0.3
                     , mtl          >= 2.1
                     , stm
                     , transformers
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall

source-repository head
  type:     git
  location: https://github.com/joelteon/concurrent-state.git

executable chat-server
  main-is:          ChatServer.hs
  hs-source-dirs:   examples
  default-language: Haskell2010
  ghc-options:      -Wall -threaded

  if flag(examples)
    build-depends:  base
                  , concurrent-state
                  , network
                  , stm
  else
    buildable:      False