explainable-predicates 0.1.2.2 → 0.1.2.3
raw patch · 3 files changed
+28/−5 lines, 3 filesdep ~basedep ~template-haskellPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, template-haskell
API changes (from Hackage documentation)
Files
- CHANGELOG.md +3/−0
- README.md +20/−0
- explainable-predicates.cabal +5/−5
CHANGELOG.md view
@@ -1,5 +1,8 @@ # Revision history for explainable-predicates +## 0.1.2.3 -- 2021-09-18++* Version bounds now allow GHC 9.4 ## 0.1.2.2 -- 2021-12-20 * Better error messages for HUnit integration.
+ README.md view
@@ -0,0 +1,20 @@+# explainable-predicates - Predicates that can explain themselves++[](https://github.com/cdsmith/explainable-predicates/actions/workflows/ci.yml)+[](https://hackage.haskell.org/package/explainable-predicates)++[Explainable predicates](https://hackage.haskell.org/package/explainable-predicates)+are essentially functions from types to `Bool` which can additionally describe+themselves and explain why an argument does or doesn't match. They are intended+to be used during unit tests to provide better error messages when tests fail.+For example, if a collection is missing an element, an explainable predicate can+tell you which element is missing.++## FAQ++Here are a few tips for making the most of explainable-predicates.++### Which GHC versions are supported?++explainable-predicates is tested with GHC versions from 8.6 through 9.4.+
explainable-predicates.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: explainable-predicates-version: 0.1.2.2+version: 0.1.2.3 synopsis: Predicates that can explain themselves. description: Explainable predicates are essentially functions from types to 'Bool' which can additionally describe themselves and@@ -18,9 +18,9 @@ author: Chris Smith <cdsmith@gmail.com> maintainer: Chris Smith <cdsmith@gmail.com> -extra-source-files: CHANGELOG.md+extra-source-files: CHANGELOG.md, README.md -tested-with: GHC == 8.6.5 || == 8.8.4 || == 8.10.7 || == 9.0.2 || == 9.2.3+tested-with: GHC == 8.6.5 || == 8.8.4 || == 8.10.7 || == 9.0.2 || == 9.2.3 || == 9.4.2 source-repository head type: git@@ -56,9 +56,9 @@ Test.Predicates.Internal.FlowMatcher other-modules: Test.Predicates.Internal.Util build-depends: array >= 0.5.2 && < 0.6,- base >=4.12.0 && < 4.17,+ base >=4.12.0 && < 4.18, syb >= 0.7.2 && < 0.8,- template-haskell >= 2.13.0 && < 2.19,+ template-haskell >= 2.13.0 && < 2.20, hs-source-dirs: src default-language: Haskell2010 ghc-options: -Wall -Wcompat -Wincomplete-uni-patterns