packages feed

tasty-golden-extra 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+23/−9 lines, 3 filesdep ~aesondep ~basedep ~tasty-discoverPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: aeson, base, tasty-discover

API changes (from Hackage documentation)

- Test.Tasty.Golden.Extra.GoldenVsToJSON: goldenVsToJson :: forall a. ToJSON a => TestName -> FilePath -> IO a -> TestTree
+ Test.Tasty.Golden.Extra.GoldenVsToJSON: goldenVsToJson :: ToJSON a => TestName -> FilePath -> IO a -> TestTree
- Test.Tasty.Golden.Extra.GoldenVsToYAML: goldenVsToYaml :: forall a. ToJSON a => TestName -> FilePath -> IO a -> TestTree
+ Test.Tasty.Golden.Extra.GoldenVsToYAML: goldenVsToYaml :: ToJSON a => TestName -> FilePath -> IO a -> TestTree

Files

CHANGELOG.md view
@@ -1,5 +1,14 @@ # Changes +## Version 0.1.0.1++_2025-10-13_++- `GoldenVsToYAML` was using `fail` instead of `error` for reporting+  mismatches, which caused behavioural inconsistencies (such as not+  creating new files when golden files do not exist). This has been+  fixed to use `error` for consistency with `GoldenVsToJSON`.+ ## Version 0.1.0.0  _2024-12-17_
src/Test/Tasty/Golden/Extra/GoldenVsToYAML.hs view
@@ -91,7 +91,7 @@ orFailTest :: FilePath -> Either Yaml.ParseException a -> IO a orFailTest fp =   either-    ( fail+    ( error         . (\t -> mconcat ["Failed to decode file ", fp, "\n", t])         . Yaml.prettyPrintParseException     )
tasty-golden-extra.cabal view
@@ -1,15 +1,13 @@ cabal-version:      3.0 name:               tasty-golden-extra-version:            0.1.0.0+version:            0.1.0.1 license:            BSD-3-Clause license-file:       LICENSE category:           Testing-homepage:-  https://github.com/bellroy/tasty-golden-extra-+homepage:           https://github.com/bellroy/tasty-golden-extra bug-reports:        https://github.com/bellroy/tasty-golden-extra/issues author:             Bellroy-maintainer:         geeks@bellroy.com+maintainer:         haskell@bellroy.com build-type:         Simple synopsis:           Additional golden test helpers for the tasty-golden package description:@@ -19,7 +17,14 @@   instances.  tested-with:-  GHC ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.5 || ==9.6.6 || ==9.8.2+  GHC ==8.10.7+   || ==9.0.2+   || ==9.2.4+   || ==9.4.5+   || ==9.6.6+   || ==9.8.2+   || ==9.10.1+   || ==9.12.2  extra-source-files:   CHANGELOG.md@@ -34,12 +39,12 @@     , aeson           >=2.1        && <2.3     , aeson-diff      ^>=1.1.0.13     , aeson-pretty    ^>=0.8.10-    , base            >=4.14       && <4.20+    , base            >=4.14       && <4.22     , bytestring      >=0.10       && <0.13     , pretty-show     ^>=1.10     , pretty-simple   ^>=4.1.3.0     , tasty           ^>=1.5.2-    , tasty-discover  ^>=5.0.0+    , tasty-discover  ^>=5.0.0     || ^>=5.1     , tasty-golden    ^>=2.3.5     , text            ^>=1.2       || ^>=2.0 || ^>=2.1     , yaml            ^>=0.11.11.2