@@ -33,10 +33,6 @@ flag th
3333 description: Build with Template Haskell support
3434 default: True
3535
36−flag benchmarks
37− description: Build benchmarks
38− default: False
39−
4036flag prof
4137 description: Compiling with profiling enabled
4238 default: False
@@ -104,71 +100,61 @@ Library
104100
105101-- Tests are in distributed-process-test package, for convenience.
106102
107−Executable distributed-process-throughput
108− if flag(benchmarks)
109− Build-Depends: base >= 4.4 && < 5,
110− distributed-process,
111− network-transport-tcp >= 0.3 && < 0.4,
112− bytestring >= 0.9 && < 0.11,
113− binary >= 0.6.3 && < 0.8
114− else
115− buildable: False
116− Main-Is: benchmarks/Throughput.hs
117− ghc-options: -Wall
118− Extensions: BangPatterns
103+benchmark distributed-process-throughput
104+ Type: exitcode-stdio-1.0
105+ Build-Depends: base >= 4.4 && < 5,
106+ distributed-process,
107+ network-transport-tcp >= 0.3 && < 0.4,
108+ bytestring >= 0.9 && < 0.11,
109+ binary >= 0.6.3 && < 0.8
110+ Main-Is: benchmarks/Throughput.hs
111+ ghc-options: -Wall
112+ Extensions: BangPatterns
119113
120−Executable distributed-process-latency
121− if flag(benchmarks)
122− Build-Depends: base >= 4.4 && < 5,
123− distributed-process,
124− network-transport-tcp >= 0.3 && < 0.4,
125− bytestring >= 0.9 && < 0.11,
126− binary >= 0.6.3 && < 0.8
127− else
128− buildable: False
129− Main-Is: benchmarks/Latency.hs
130− ghc-options: -Wall
131− Extensions: BangPatterns
114+benchmark distributed-process-latency
115+ Type: exitcode-stdio-1.0
116+ Build-Depends: base >= 4.4 && < 5,
117+ distributed-process,
118+ network-transport-tcp >= 0.3 && < 0.4,
119+ bytestring >= 0.9 && < 0.11,
120+ binary >= 0.6.3 && < 0.8
121+ Main-Is: benchmarks/Latency.hs
122+ ghc-options: -Wall
123+ Extensions: BangPatterns
132124
133−Executable distributed-process-channels
134− if flag(benchmarks)
135− Build-Depends: base >= 4.4 && < 5,
136− distributed-process,
137− network-transport-tcp >= 0.3 && < 0.4,
138− bytestring >= 0.9 && < 0.11,
139− binary >= 0.6.3 && < 0.8
140− else
141− buildable: False
142− Main-Is: benchmarks/Channels.hs
143− ghc-options: -Wall
144− Extensions: BangPatterns
125+benchmark distributed-process-channels
126+ Type: exitcode-stdio-1.0
127+ Build-Depends: base >= 4.4 && < 5,
128+ distributed-process,
129+ network-transport-tcp >= 0.3 && < 0.4,
130+ bytestring >= 0.9 && < 0.11,
131+ binary >= 0.6.3 && < 0.8
132+ Main-Is: benchmarks/Channels.hs
133+ ghc-options: -Wall
134+ Extensions: BangPatterns
145135
146−Executable distributed-process-spawns
147− if flag(benchmarks)
148− Build-Depends: base >= 4.4 && < 5,
149− distributed-process,
150− network-transport-tcp >= 0.3 && < 0.4,
151− bytestring >= 0.9 && < 0.11,
152− binary >= 0.6.3 && < 0.8
153− else
154− buildable: False
155− Main-Is: benchmarks/Spawns.hs
156− ghc-options: -Wall
157− Extensions: BangPatterns
136+benchmark distributed-process-spawns
137+ Type: exitcode-stdio-1.0
138+ Build-Depends: base >= 4.4 && < 5,
139+ distributed-process,
140+ network-transport-tcp >= 0.3 && < 0.4,
141+ bytestring >= 0.9 && < 0.11,
142+ binary >= 0.6.3 && < 0.8
143+ Main-Is: benchmarks/Spawns.hs
144+ ghc-options: -Wall
145+ Extensions: BangPatterns
158146
159−Executable distributed-process-ring
160− if flag(benchmarks)
161− Build-Depends: base >= 4.4 && < 5,
162− distributed-process,
163− network-transport-tcp >= 0.3 && < 0.4,
164− bytestring >= 0.9 && < 0.11,
165− binary >= 0.6.3 && < 0.8
166− else
167− buildable: False
168− Main-Is: benchmarks/ProcessRing.hs
147+benchmark distributed-process-ring
148+ Type: exitcode-stdio-1.0
149+ Build-Depends: base >= 4.4 && < 5,
150+ distributed-process,
151+ network-transport-tcp >= 0.3 && < 0.4,
152+ bytestring >= 0.9 && < 0.11,
153+ binary >= 0.6.3 && < 0.8
154+ Main-Is: benchmarks/ProcessRing.hs
169155 if flag(prof)
170− ghc-options: -Wall -threaded -prof -auto-all -fno-prof-count-entries -rtsopts
156+ ghc-options: -Wall -threaded -prof -auto-all -fno-prof-count-entries -rtsopts
171157 else
172− ghc-options: -Wall -threaded -O2 -rtsopts
173− Extensions: BangPatterns,
174− ScopedTypeVariables
158+ ghc-options: -Wall -threaded -O2 -rtsopts
159+ Extensions: BangPatterns,
160+ ScopedTypeVariables