We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe0dd3 commit 7cba636Copy full SHA for 7cba636
1 file changed
incremental-benchmark/src/Main.hs
@@ -226,9 +226,10 @@ encodeIncremental _experiment msg = Write.toLazyByteString cbor
226
where
227
cbor = case msg of
228
MsgReq () -> CBOR.encodeListLen 1 <> CBOR.encodeWord 0
229
- MsgResp resp
230
- | BlockCBOR bs <- resp -> CBOR.encodeListLen 2 <> CBOR.encodeWord 1 <> CBOR.encodePreEncoded bs
231
- | otherwise -> error "impossible"
+ MsgResp resp ->
+ case resp of
+ BlockCBOR bs -> CBOR.encodeListLen 2 <> CBOR.encodeWord 1 <> CBOR.encodePreEncoded bs
232
+ Block {} -> error "impossible"
233
MsgDone -> CBOR.encodeListLen 1 <> CBOR.encodeWord 2
234
235
0 commit comments