-
Notifications
You must be signed in to change notification settings - Fork 97
Allow using QuickCheck < 2.16
#5276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
cardano-diffusion/changelog.d/20260114_093532_georgy.lukyanov_10_7_integration.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!-- | ||
| A new scriv changelog fragment. | ||
|
|
||
| Uncomment the section that is right (remove the HTML comment wrapper). | ||
| For top level release notes, leave all the headers commented out. | ||
| --> | ||
|
|
||
| <!-- | ||
| ### Breaking | ||
|
|
||
| - A bullet item for the Breaking category. | ||
|
|
||
| --> | ||
|
|
||
| ### Non-Breaking | ||
|
|
||
| - Compatibility with both `QuickCheck` < 2.15 and >= 2.16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
ouroboros-network/changelog.d/20260114_093734_georgy.lukyanov_10_7_integration.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!-- | ||
| A new scriv changelog fragment. | ||
|
|
||
| Uncomment the section that is right (remove the HTML comment wrapper). | ||
| For top level release notes, leave all the headers commented out. | ||
| --> | ||
|
|
||
| <!-- | ||
| ### Breaking | ||
|
|
||
| - A bullet item for the Breaking category. | ||
|
|
||
| --> | ||
|
|
||
| ### Non-Breaking | ||
|
|
||
| - Compatibility with both `QuickCheck` < 2.15 and >= 2.16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
ouroboros-network/framework/tests-lib/Test/Ouroboros/Network/InboundGovernor/Utils.hs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,9 +55,16 @@ common ghc-options | |
| -- in tests librararies redundant constraints are sometimes useful (e.g. | ||
| -- by default truned off debug tracing might require extra constraints like | ||
| -- `Show` or `MonadSay`). | ||
| -- | ||
| -- TODO: '-Wno-redundant-constraints' remove when we support | ||
| -- `quickcheck-monoids`. For now, it is needed to prevent | ||
| -- false-positives that lead to build errors with `-Werror`. | ||
| -- See https://gitlab.haskell.org/ghc/ghc/-/issues/24173 for details. | ||
| common ghc-options-tests | ||
| import: ghc-options | ||
| ghc-options: -Wno-redundant-constraints | ||
| ghc-options: | ||
| -Wno-redundant-constraints | ||
| -Wno-unused-packages | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add a comment, that this is only required until we support |
||
|
|
||
| library api | ||
| import: ghc-options | ||
|
|
@@ -451,7 +458,7 @@ library tests-lib | |
| cpp-options: -DNIGHTLY | ||
|
|
||
| test-suite tests-lib-tests | ||
| import: ghc-options | ||
| import: ghc-options-tests | ||
| type: exitcode-stdio-1.0 | ||
| main-is: Main.hs | ||
| hs-source-dirs: tests-lib/tests | ||
|
|
@@ -468,7 +475,10 @@ test-suite tests-lib-tests | |
| -threaded | ||
|
|
||
| library framework-tests-lib | ||
| import: ghc-options | ||
| import: ghc-options-tests | ||
| mixins: | ||
| QuickCheck hiding (Test.QuickCheck.Monoids) | ||
|
|
||
| visibility: public | ||
| hs-source-dirs: framework/tests-lib | ||
| exposed-modules: | ||
|
|
@@ -480,7 +490,7 @@ library framework-tests-lib | |
| Test.Ouroboros.Network.RawBearer.Utils | ||
|
|
||
| build-depends: | ||
| QuickCheck >=2.16, | ||
| QuickCheck, | ||
| base >=4.14 && <4.23, | ||
| bytestring, | ||
| cborg, | ||
|
|
@@ -491,12 +501,16 @@ library framework-tests-lib | |
| io-sim, | ||
| network-mux, | ||
| ouroboros-network:{api, framework, tests-lib}, | ||
| quickcheck-monoids, | ||
| random, | ||
| serialise, | ||
| typed-protocols:{typed-protocols, examples}, | ||
|
|
||
| test-suite framework-sim-tests | ||
| import: ghc-options | ||
| import: ghc-options-tests | ||
| mixins: | ||
| QuickCheck hiding (Test.QuickCheck.Monoids) | ||
|
|
||
| type: exitcode-stdio-1.0 | ||
| main-is: Main.hs | ||
| hs-source-dirs: framework/sim-tests | ||
|
|
@@ -508,7 +522,7 @@ test-suite framework-sim-tests | |
| Test.Simulation.Network.Snocket | ||
|
|
||
| build-depends: | ||
| QuickCheck >=2.16, | ||
| QuickCheck, | ||
| base >=4.14 && <4.23, | ||
| bytestring, | ||
| cborg, | ||
|
|
@@ -522,6 +536,7 @@ test-suite framework-sim-tests | |
| pretty-simple, | ||
| psqueues, | ||
| quickcheck-instances, | ||
| quickcheck-monoids, | ||
| quiet, | ||
| random, | ||
| serialise, | ||
|
|
@@ -539,7 +554,7 @@ test-suite framework-sim-tests | |
| cpp-options: -DOUROBOROS_NETWORK_IPV6 | ||
|
|
||
| test-suite framework-io-tests | ||
| import: ghc-options | ||
| import: ghc-options-tests | ||
| type: exitcode-stdio-1.0 | ||
| main-is: Main.hs | ||
| hs-source-dirs: framework/io-tests | ||
|
|
@@ -550,7 +565,7 @@ test-suite framework-io-tests | |
| Test.Ouroboros.Network.Socket | ||
|
|
||
| build-depends: | ||
| QuickCheck >=2.16, | ||
| QuickCheck, | ||
| base >=4.14 && <4.23, | ||
| bytestring, | ||
| contra-tracer, | ||
|
|
@@ -575,7 +590,7 @@ test-suite framework-io-tests | |
| -threaded | ||
|
|
||
| library orphan-instances | ||
| import: ghc-options | ||
| import: ghc-options-tests | ||
| visibility: public | ||
| hs-source-dirs: orphan-instances | ||
| exposed-modules: | ||
|
|
@@ -734,7 +749,7 @@ library protocols | |
| typed-protocols:{typed-protocols, cborg, stateful, stateful-cborg} ^>=1.1, | ||
|
|
||
| library protocols-tests-lib | ||
| import: ghc-options | ||
| import: ghc-options-tests | ||
| visibility: public | ||
| hs-source-dirs: protocols/tests-lib | ||
| exposed-modules: | ||
|
|
@@ -818,10 +833,13 @@ test-suite protocols-tests | |
| -- Simulation Test Library | ||
| library ouroboros-network-tests-lib | ||
| import: ghc-options-tests | ||
| mixins: | ||
| QuickCheck hiding (Test.QuickCheck.Monoids) | ||
|
|
||
| visibility: public | ||
| hs-source-dirs: tests/lib | ||
| build-depends: | ||
| QuickCheck >=2.16, | ||
| QuickCheck, | ||
| aeson, | ||
| array, | ||
| base >=4.14 && <4.23, | ||
|
|
@@ -844,6 +862,7 @@ library ouroboros-network-tests-lib | |
| nothunks, | ||
| ouroboros-network:{ouroboros-network, api, api-tests-lib, framework, framework-tests-lib, protocols, protocols-tests-lib, tests-lib}, | ||
| pretty-simple, | ||
| quickcheck-monoids, | ||
| random, | ||
| serialise, | ||
| splitmix, | ||
|
|
@@ -852,6 +871,7 @@ library ouroboros-network-tests-lib | |
| tasty-quickcheck, | ||
| text, | ||
| time >=1.9.1 && <1.16, | ||
| transformers-except, | ||
| typed-protocols, | ||
|
|
||
| exposed-modules: | ||
|
|
@@ -914,7 +934,7 @@ test-suite ouroboros-network-io-tests | |
| Test.Ouroboros.Network.Socket | ||
|
|
||
| build-depends: | ||
| QuickCheck >=2.16, | ||
| QuickCheck, | ||
| base >=4.14 && <4.23, | ||
| bytestring, | ||
| cborg, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can squash this on top of the first commit, which contain similar changes.