packages feed

broadcast-chan-tests-0.2.1.2: broadcast-chan-tests.cabal

Cabal-Version:      2.2
Name:               broadcast-chan-tests
Version:            0.2.1.2

Homepage:           https://github.com/merijn/broadcast-chan
Bug-Reports:        https://github.com/merijn/broadcast-chan/issues

Author:             Merijn Verstraaten
Maintainer:         Merijn Verstraaten <merijn@inconsistent.nl>
Copyright:          Copyright © 2014-2021 Merijn Verstraaten

License:            BSD-3-Clause
License-File:       LICENSE

Category:           System
Build-Type:         Simple
Tested-With:        GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5,
                    GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.1, GHC == 9.2.1

Extra-Source-Files: CHANGELOG.md

Synopsis:           Helpers for generating tests for broadcast-chan

Description:
    Provides helpers for implementing the streaming/concurrency tests used by
    broadcast-chan, broadcast-chan-conduit, and broadcast-chan-pipes.

Library
  Default-Language:     Haskell2010
  GHC-Options:          -Wall -O2 -Wno-unused-do-bind
  Exposed-Modules:      BroadcastChan.Test

  Other-Extensions:     DeriveDataTypeable
                        ScopedTypeVariables
                        Trustworthy

  Build-Depends:        base >= 4.8 && < 4.17
               ,        async >= 2.1 && < 2.3
               ,        broadcast-chan == 0.2.1.2
               ,        clock >= 0.7 && < 0.9
               ,        containers >= 0.4 && < 0.7
               ,        optparse-applicative >= 0.12 && < 0.17
               ,        paramtree >= 0.1.1 && < 0.2
               ,        stm >= 2.4 && < 2.6
               ,        tagged == 0.8.*
               ,        tasty >= 0.11 && < 1.5
               ,        tasty-golden >= 2.0 && < 2.4
               ,        tasty-hunit >= 0.9 && < 0.11
               ,        tasty-travis >= 0.2 && < 0.3
               ,        temporary >= 1.2 && < 1.4
               ,        text >= 1.0 && < 1.3

  if impl(ghc <= 7.10)
    Build-Depends:      transformers >= 0.2 && < 0.7

Test-Suite basic
  Default-Language:     Haskell2010
  Type:                 exitcode-stdio-1.0
  Main-Is:              Basic.hs
  GHC-Options:          -Wall -threaded -Wno-unused-do-bind -with-rtsopts=-qg
  Hs-Source-Dirs:       tests
  Build-Depends:        base
               ,        broadcast-chan
               ,        broadcast-chan-tests
               ,        foldl >= 1.4 && < 1.5
               ,        monad-loops >= 0.4.3 && < 0.5
               ,        random >= 1.1 && < 1.3

Test-Suite basic-unthreaded
  Default-Language:     Haskell2010
  Type:                 exitcode-stdio-1.0
  Main-Is:              Basic.hs
  GHC-Options:          -Wall -Wno-unused-do-bind
  Hs-Source-Dirs:       tests
  Build-Depends:        base
               ,        broadcast-chan
               ,        broadcast-chan-tests
               ,        foldl >= 1.4 && < 1.5
               ,        monad-loops >= 0.4.3 && < 0.5
               ,        random >= 1.1 && < 1.3

Test-Suite parallel-io
  Default-Language:     Haskell2010
  Type:                 exitcode-stdio-1.0
  Main-Is:              IOTest.hs
  GHC-Options:          -Wall -O2 -Wno-unused-do-bind -threaded -with-rtsopts=-qg
  Hs-Source-Dirs:       tests
  Build-Depends:        base
               ,        broadcast-chan
               ,        broadcast-chan-tests
               ,        containers >= 0.4 && < 0.7

Source-Repository head
  Type:     git
  Location: ssh://github.com:merijn/broadcast-chan.git