git.iko.soy/distributed-process
on master help sign in
Don't use the deprecated extensions field in .cabal.
commit482aaa8cf6d372935f5ec29ff0804d6583a1fdfc authorMathieu Boespflug <m@tweag.io> dateSat 5 Sep 2015, 22:17 (11 years ago) parentefa4656
4 files changed+8−6
benchmarks/ProcessRing.hs+4−1 benchmarks/Spawns.hs+2 benchmarks/Throughput.hs+2 distributed-process.cabal−5
benchmarks/ProcessRing.hs+4−1
@@ -4,6 +4,10 @@ To run the benchmarks, select a value for the ring size (sz) and
44the number of times to send a message around the ring
55
66-}
7+
8+{-# LANGUAGE BangPatterns #-}
9+{-# LANGUAGE ScopedTypeVariables #-}
10+
711import Control.Monad
812import Control.Distributed.Process hiding (catch)
913import Control.Distributed.Process.Node
@@ -110,4 +114,3 @@ main = do
110114 node <- newLocalNode transport initRemoteTable
111115 catch (void $ runProcess node $ initialProcess opt)
112116 (\(e :: SomeException) -> putStrLn $ "ERROR: " ++ (show e))
113−
benchmarks/Spawns.hs+2
@@ -1,3 +1,5 @@
1+{-# LANGUAGE BangPatterns #-}
2+
13-- | Like Throughput, but send every ping from a different process
24-- (i.e., require a lightweight connection per ping)
35import System.Environment
benchmarks/Throughput.hs+2
@@ -1,4 +1,6 @@
1+{-# LANGUAGE BangPatterns #-}
12{-# LANGUAGE DeriveDataTypeable #-}
3+
24import System.Environment
35import Control.Monad
46import Control.Applicative
distributed-process.cabal−5
@@ -86,7 +86,6 @@ Library
8686 Control.Distributed.Process.Management.Internal.Trace.Remote,
8787 Control.Distributed.Process.Management.Internal.Trace.Types,
8888 Control.Distributed.Process.Management.Internal.Trace.Tracer
89− -- Extensions: -- we use explicit per-file LANGUAGE pragmas
9089 ghc-options: -Wall
9190 HS-Source-Dirs: src
9291 if impl(ghc <= 7.4.2)
@@ -118,7 +117,6 @@ benchmark distributed-process-throughput
118117 binary >= 0.6.3 && < 0.8
119118 Main-Is: benchmarks/Throughput.hs
120119 ghc-options: -Wall
121− Extensions: BangPatterns
122120
123121benchmark distributed-process-latency
124122 Type: exitcode-stdio-1.0
@@ -129,7 +127,6 @@ benchmark distributed-process-latency
129127 binary >= 0.6.3 && < 0.8
130128 Main-Is: benchmarks/Latency.hs
131129 ghc-options: -Wall
132− Extensions: BangPatterns
133130
134131benchmark distributed-process-channels
135132 Type: exitcode-stdio-1.0
@@ -140,7 +137,6 @@ benchmark distributed-process-channels
140137 binary >= 0.6.3 && < 0.8
141138 Main-Is: benchmarks/Channels.hs
142139 ghc-options: -Wall
143− Extensions: BangPatterns
144140
145141benchmark distributed-process-spawns
146142 Type: exitcode-stdio-1.0
@@ -151,7 +147,6 @@ benchmark distributed-process-spawns
151147 binary >= 0.6.3 && < 0.8
152148 Main-Is: benchmarks/Spawns.hs
153149 ghc-options: -Wall
154− Extensions: BangPatterns
155150
156151benchmark distributed-process-ring
157152 Type: exitcode-stdio-1.0