packages feed

freer-converse-0.1.0.0: freer-converse.cabal

name:                freer-converse
version:             0.1.0.0
synopsis:            Handle effects conversely using monadic conversation
description:         One can think of an effectful program and its effect
                     handler as /two communicating processes/.
                     This package provides the missing pieces that let you
                     write your programs in such a style in
                     @Control.Monad.Freer.Converse@.
                     .
                     One useful area of application is unit testing. The
                     @Control.Monad.Freer.TestControl@ intends to provide what
                     you need to write /ad-hoc test fixtures/.
                     
license:             BSD3
license-file:        LICENSE
author:              Robert Hensing
maintainer:          hackage@roberthensing.nl
copyright:           Robert Hensing
category:            Testing
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.10
tested-with:         GHC == 7.8.4, GHC == 7.10.2, GHC == 8.0.2

library
  exposed-modules:     Control.Monad.Freer.Converse
                       Control.Monad.Freer.TestControl
                       Data.Functor.Classes.FreerConverse.Parametric
  default-extensions:  RankNTypes, TypeOperators, GADTs, FlexibleContexts, DataKinds, OverloadedStrings
  build-depends:       base >=4.7 && <4.10
                     , freer-effects >=0.3 && <0.4
                     , text
  ghc-options:         -Wall
  hs-source-dirs:      src
  default-language:    Haskell2010

flag reloadable
  description: Include the library by source, so GHCi can reload it when
               running the test suite.
               Decreases iteration time in ghci, but increases the
               'cabal build' time, so it's off by default.
  default: False
  
  
test-suite example-Hello
  type: exitcode-stdio-1.0
  hs-source-dirs: examples
  default-language: Haskell2010
  default-extensions:  RankNTypes, TypeOperators, GADTs, FlexibleContexts, DataKinds, OverloadedStrings
  main-is:             HelloTest.hs
  other-modules:       Hello
  build-depends:       base >=4.7 && <4.10
                     , freer-effects >=0.3 && <0.4
                     , tasty
                     , tasty-hunit
                     , tasty-quickcheck
                     , text
  if flag(reloadable)
    hs-source-dirs:  src examples
  else
    Build-Depends:   freer-converse

source-repository head
  type: git
  location: https://github.com/roberth/freer-converse