File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,9 @@ jobs:
107
107
restore-keys : cache-dist-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}
108
108
109
109
- name : Build dependencies
110
- run : cabal build --only-dependencies all
110
+ run : |
111
+ cabal build --only-dependencies io-sim
112
+ cabal build --only-dependencies io-classes
111
113
112
114
- name : Build projects [build]
113
115
run : cabal build all
Original file line number Diff line number Diff line change @@ -5,14 +5,20 @@ packages: ./io-sim
5
5
./strict-stm
6
6
7
7
package io-sim
8
- tests : True
9
- -- NOTE: to enable benchmarks, one needs to disable tests for --
10
- -- `typed-protocols-examples`. This won't be a problem, once `io-sim` lands
11
- -- in its own repository.
12
- benchmarks : False
8
+ flags : +asserts
13
9
14
10
package io-classes
15
11
flags : +asserts
16
12
17
13
package strict-stm
18
14
flags : +asserts
15
+
16
+ source-repository-package
17
+ type : git
18
+ location : https://github.com/input-output-hk/typed-protocols
19
+ tag : b00ba45ed0c81284378ddea9a42c96e8ccb855e0
20
+ --sha256 : 1qdp1wbvbmcs8z0c8phjz58w1zfwb1lkb0bjh7ksfy3hyrzcs07i
21
+ subdir :
22
+ typed-protocols
23
+ typed-protocols-cborg
24
+ typed-protocols-examples
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import Control.Monad.Class.MonadSay
11
11
import Control.Monad.Class.MonadThrow
12
12
import Control.Monad.Class.MonadTimer
13
13
import Control.Monad.IOSim
14
- import Control.Tracer (Tracer (.. ), nullTracer )
14
+ import Control.Tracer (Tracer (.. ), emit , nullTracer )
15
15
16
16
import Criterion
17
17
import Criterion.Main
@@ -104,7 +104,7 @@ main = defaultMain
104
104
, bench " events" $
105
105
nf id ( selectTraceEventsSay
106
106
$ runSimTrace
107
- $ prop_channel Nothing n (Tracer $ say . show ))
107
+ $ prop_channel Nothing n (Tracer $ emit $ say . show ))
108
108
]
109
109
, env (pure () ) $ \ _ ->
110
110
bgroup " delays"
You can’t perform that action at this time.
0 commit comments