Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
index-state: 2026-04-15T07:49:33Z
index-state: 2026-08-21T13:18:40Z

packages: ./typed-protocols
./typed-protocols-doc
Expand Down
5 changes: 2 additions & 3 deletions typed-protocols/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Revision history for typed-protocols

## next version

### Breaking changes
## 1.2.2.0 -- 2026-08-21

### Non-breaking changes

* Repository moved to https://github.com/IntersectMBO/typed-protocols
* Added `Lookahead`, a dual of `Pipelined`: a peer defers its sends to
background `Sender`s and receives ahead (`AwaitLookahead` / `FlushSender`),
with supporting proofs, drivers, and `Server` pattern synonyms.
* Support `QuickCheck >= 2.18`, `io-classes-1.11`.

## 1.2.1.0 -- 2026-04-16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)


#if !MIN_VERSION_QuickCheck(2, 18, 0)
withNumTests :: Testable prop => Int -> prop -> Property
withNumTests = withMaxSuccess
#endif

--
-- The list of all properties
--
Expand Down Expand Up @@ -75,7 +80,7 @@ tests = testGroup "Network.TypedProtocol.PingPong"
, testGroup "CBOR"
[ testProperty "codec" prop_codec_cbor_PingPong
, testProperty "codec 2-splits" prop_codec_cbor_splits2_PingPong
, testProperty "codec 3-splits" $ withMaxSuccess 30 prop_codec_cbor_splits3_PingPong
, testProperty "codec 3-splits" $ withNumTests 30 prop_codec_cbor_splits3_PingPong
]
]
]
Expand Down
11 changes: 8 additions & 3 deletions typed-protocols/test/Network/TypedProtocol/ReqResp/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ import Test.Tasty.QuickCheck (testProperty)
import Text.Show.Functions ()


#if !MIN_VERSION_QuickCheck(2, 18, 0)
withNumTests :: Testable prop => Int -> prop -> Property
withNumTests = withMaxSuccess
#endif

--
-- The list of all properties
--
Expand Down Expand Up @@ -75,11 +80,11 @@ tests = testGroup "Network.TypedProtocol.ReqResp"
, testGroup "Codec"
[ testProperty "codec" prop_codec_ReqResp
, testProperty "codec 2-splits" prop_codec_splits2_ReqResp
, testProperty "codec 3-splits" (withMaxSuccess 33 prop_codec_splits3_ReqResp)
, testProperty "codec 3-splits" (withNumTests 33 prop_codec_splits3_ReqResp)
, testGroup "CBOR"
[ testProperty "codec" prop_codec_cbor_ReqResp
, testProperty "codec 2-splits" prop_codec_cbor_splits2_ReqResp
, testProperty "codec 3-splits" $ withMaxSuccess 30 prop_codec_cbor_splits3_ReqResp
, testProperty "codec 3-splits" $ withNumTests 30 prop_codec_cbor_splits3_ReqResp
]
]
, testGroup "AnnotatedCodec"
Expand Down Expand Up @@ -316,7 +321,7 @@ prop_channelLookahead_ST g n =
--
prop_channelLookahead_IOSimPOR :: (Int -> (Int, Int)) -> NonNegative Int -> Property
prop_channelLookahead_IOSimPOR g (NonNegative n) =
withMaxSuccess 20 $
withNumTests 20 $
exploreSimTrace id (prop_channelLookahead g (NonNegative (min n 6))) $ \_ tr ->
case traceResult False tr of
Left failure -> counterexample (show failure) (property False)
Expand Down
4 changes: 2 additions & 2 deletions typed-protocols/typed-protocols.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.4
name: typed-protocols
version: 1.2.1.0
version: 1.2.2.0
synopsis: A framework for strongly typed protocols
description: A robust session type framework which supports protocol pipelining.
Haddocks are published [here](https://intersectmbo.github.io/typed-protocols/)
Expand Down Expand Up @@ -55,7 +55,7 @@ library
other-modules: Network.TypedProtocol.Lemmas
build-depends: base >=4.12 && <4.23,
deepseq,
io-classes:io-classes ^>= 1.8 || ^>= 1.9 || ^>= 1.10,
io-classes:io-classes >=1.8 && <1.12 ,
singletons ^>= 3.0
hs-source-dirs: src
default-extensions: DataKinds
Expand Down