summaryrefslogtreecommitdiff
path: root/threads-supervisor.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'threads-supervisor.cabal')
-rw-r--r--threads-supervisor.cabal29
1 files changed, 28 insertions, 1 deletions
diff --git a/threads-supervisor.cabal b/threads-supervisor.cabal
index 6fbaacc..6fbe01d 100644
--- a/threads-supervisor.cabal
+++ b/threads-supervisor.cabal
@@ -1,5 +1,5 @@
name: threads-supervisor
-version: 1.0.2.0
+version: 1.0.3.0
synopsis: Simple, IO-based library for Erlang-style thread supervision
description: Simple, IO-based library for Erlang-style thread supervision
license: MIT
@@ -15,6 +15,9 @@ source-repository head
type: git
location: https://github.com/adinapoli/threads-supervisor
+flag prof
+ default: False
+
library
exposed-modules:
Control.Concurrent.Supervisor
@@ -22,13 +25,36 @@ library
build-depends:
base >= 4.6 && < 5,
unordered-containers >= 0.2.0.0 && < 0.3.0.0,
+ retry >= 0.5 && < 0.8,
stm >= 2.4,
time >= 1.2
hs-source-dirs:
src
+ if flag(prof)
+ ghc-options: -fprof-auto -rtsopts
+ default-language: Haskell2010
+ ghc-options:
+ -Wall
+ -funbox-strict-fields
+
+executable threads-supervisor-example
+ build-depends:
+ base >= 4.6 && < 5,
+ threads-supervisor -any,
+ unordered-containers >= 0.2.0.0 && < 0.3.0.0,
+ stm >= 2.4,
+ time >= 1.2
+ hs-source-dirs:
+ examples
+ main-is:
+ Main.hs
+ if flag(prof)
+ ghc-options: -fprof-auto -rtsopts
default-language: Haskell2010
ghc-options:
-Wall
+ -threaded
+ "-with-rtsopts=-N"
-funbox-strict-fields
test-suite threads-supervisor-tests
@@ -49,6 +75,7 @@ test-suite threads-supervisor-tests
threads-supervisor -any
, base
, bytestring
+ , retry
, QuickCheck
, tasty >= 0.9.0.1
, tasty-quickcheck