Skip to content

Commit de5f8bb

Browse files
network-mux: expose ReqResp
1 parent 93bfe0d commit de5f8bb

2 files changed

Lines changed: 54 additions & 21 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
For top level release notes, leave all the headers commented out.
6+
-->
7+
8+
<!--
9+
### Breaking
10+
11+
- A bullet item for the Breaking category.
12+
13+
-->
14+
15+
### Non-Breaking
16+
17+
- Expose `runClientBurst`, `runServerBurst` and `runCBORDecoderWithChannel` from
18+
`ReqResp` for use in the incremental decoder benchmark.
19+
- Expose `ReqResp` in new tests-lib library.
20+
21+
22+
<!--
23+
### Patch
24+
25+
- A bullet item for the Patch category.
26+
27+
-->

network-mux/network-mux.cabal

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ flag tracetcpinfo
2828
manual: True
2929
default: False
3030

31-
common demo-deps
31+
common lib-defaults
3232
default-language: Haskell2010
3333
default-extensions: ImportQualifiedPost
3434
ghc-options:
35-
-threaded
3635
-Wall
37-
-fno-ignore-asserts
36+
-Wno-unticked-promoted-constructors
3837
-Wcompat
3938
-Wincomplete-uni-patterns
4039
-Wincomplete-record-updates
@@ -48,7 +47,14 @@ common demo-deps
4847
ghc-options:
4948
-Wno-pattern-namespace-specifier
5049

50+
common demo-deps
51+
import: lib-defaults
52+
ghc-options:
53+
-threaded
54+
-fno-ignore-asserts
55+
5156
library
57+
import: lib-defaults
5258
build-depends:
5359
-- The Windows version of network-3.1.2 is missing
5460
-- functions, see
@@ -105,31 +111,31 @@ library
105111
if os(windows)
106112
exposed-modules:
107113
Network.Mux.Bearer.NamedPipe
108-
default-language: Haskell2010
109-
default-extensions: ImportQualifiedPost
110-
ghc-options:
111-
-Wall
112-
-Wcompat
113-
-Widentities
114-
-Wincomplete-record-updates
115-
-Wincomplete-uni-patterns
116-
-Wno-unticked-promoted-constructors
117-
-Wpartial-fields
118-
-Wredundant-constraints
119-
-Wunused-packages
120114

121-
-- In ghc-9.14 the `pattern` namespace specifier is deprecated.
122-
if impl(ghc >=9.14)
123-
ghc-options:
124-
-Wno-pattern-namespace-specifier
115+
library tests-lib
116+
import: lib-defaults
117+
visibility: public
118+
hs-source-dirs: test
119+
exposed-modules:
120+
Test.Mux.ReqResp
121+
122+
build-depends:
123+
base >=4.14 && <4.23,
124+
binary,
125+
bytestring >=0.10 && <0.13,
126+
cborg >=0.2.8 && <0.3,
127+
contra-tracer >=0.1 && <0.3,
128+
io-classes:{io-classes} ^>=1.8,
129+
network-mux,
130+
primitive,
131+
serialise
125132

126133
test-suite test
127134
type: exitcode-stdio-1.0
128135
hs-source-dirs: test
129136
main-is: Main.hs
130137
other-modules:
131138
Test.Mux
132-
Test.Mux.ReqResp
133139
Test.Mux.Timeout
134140

135141
default-language: Haskell2010
@@ -146,7 +152,7 @@ test-suite test
146152
io-classes:{io-classes, si-timers, strict-stm},
147153
io-sim,
148154
network,
149-
network-mux,
155+
network-mux:{network-mux, tests-lib},
150156
primitive,
151157
quickcheck-instances,
152158
serialise,

0 commit comments

Comments
 (0)