diff -Nru haskell-validity-0.12.0.1/CHANGELOG.md haskell-validity-0.12.0.2/CHANGELOG.md --- haskell-validity-0.12.0.1/CHANGELOG.md 2022-04-26 20:01:18.000000000 +0000 +++ haskell-validity-0.12.0.2/CHANGELOG.md 2023-10-09 12:30:33.000000000 +0000 @@ -1,5 +1,11 @@ # Changelog +## [0.12.0.2] - 2023-10-09 + +### Added + +* `decorateString` + ## [0.12.0.1] - 2022-04-26 ### Added diff -Nru haskell-validity-0.12.0.1/debian/changelog haskell-validity-0.12.0.2/debian/changelog --- haskell-validity-0.12.0.1/debian/changelog 2022-12-09 13:27:24.000000000 +0000 +++ haskell-validity-0.12.0.2/debian/changelog 2023-10-19 18:01:22.000000000 +0000 @@ -1,14 +1,15 @@ -haskell-validity (0.12.0.1-1build2) lunar; urgency=medium +haskell-validity (0.12.0.2-1) unstable; urgency=medium - * Rebuild against new GHC ABI. + * New upstream release - -- Gianfranco Costamagna Fri, 09 Dec 2022 14:27:24 +0100 + -- Ilias Tsitsimpis Thu, 19 Oct 2023 21:01:22 +0300 -haskell-validity (0.12.0.1-1build1) lunar; urgency=medium +haskell-validity (0.12.0.1-2) unstable; urgency=medium - * Rebuild against new OCAML ABI. + * Declare compliance with Debian policy 4.6.2 + * Sourceful upload for GHC 9.4 - -- Gianfranco Costamagna Thu, 08 Dec 2022 21:55:10 +0100 + -- Ilias Tsitsimpis Sun, 27 Aug 2023 12:40:14 +0300 haskell-validity (0.12.0.1-1) unstable; urgency=medium diff -Nru haskell-validity-0.12.0.1/debian/control haskell-validity-0.12.0.2/debian/control --- haskell-validity-0.12.0.1/debian/control 2022-07-03 11:13:54.000000000 +0000 +++ haskell-validity-0.12.0.2/debian/control 2023-10-19 18:01:22.000000000 +0000 @@ -10,7 +10,7 @@ ghc, ghc-prof, Build-Depends-Indep: ghc-doc, -Standards-Version: 4.6.1 +Standards-Version: 4.6.2 Homepage: https://github.com/NorfairKing/validity#readme X-Description: validity typeclass Note: There are companion instance packages for this library: diff -Nru haskell-validity-0.12.0.1/src/Data/Validity.hs haskell-validity-0.12.0.2/src/Data/Validity.hs --- haskell-validity-0.12.0.1/src/Data/Validity.hs 2022-04-26 19:58:37.000000000 +0000 +++ haskell-validity-0.12.0.2/src/Data/Validity.hs 2023-10-02 08:11:47.000000000 +0000 @@ -48,6 +48,7 @@ delve, decorate, decorateList, + decorateString, invalid, valid, @@ -275,6 +276,12 @@ decorate (unwords ["The element at index", show (i :: Integer), "in the list"]) $ func a +-- | 'decorateList', but specifically for 'String's +-- +-- > decorateString = decorateList +decorateString :: String -> (Char -> Validation) -> Validation +decorateString = decorateList + -- | Construct a trivially invalid 'Validation' -- -- Example: diff -Nru haskell-validity-0.12.0.1/test/Data/ValiditySpec.hs haskell-validity-0.12.0.2/test/Data/ValiditySpec.hs --- haskell-validity-0.12.0.1/test/Data/ValiditySpec.hs 2022-04-26 19:58:37.000000000 +0000 +++ haskell-validity-0.12.0.2/test/Data/ValiditySpec.hs 2023-10-02 06:15:59.000000000 +0000 @@ -146,7 +146,7 @@ describe "NormalisedRatio" $ do it "says that NaN is invalid" $ NormalisedRatio notANumber `shouldSatisfy` (not . isValid) it "says that +Inf is invalid" $ NormalisedRatio infinity `shouldSatisfy` (not . isValid) - it "says that -Inf is invalid" $ NormalisedRatio (- infinity) `shouldSatisfy` (not . isValid) + it "says that -Inf is invalid" $ NormalisedRatio (-infinity) `shouldSatisfy` (not . isValid) it "says that these non-normalised numbers are invalid" $ do NormalisedRatio ((5 :: Integer) :% 5) `shouldSatisfy` (not . isValid) NormalisedRatio ((1 :: Integer) :% (-5)) `shouldSatisfy` (not . isValid) diff -Nru haskell-validity-0.12.0.1/validity.cabal haskell-validity-0.12.0.2/validity.cabal --- haskell-validity-0.12.0.1/validity.cabal 2022-04-26 20:01:36.000000000 +0000 +++ haskell-validity-0.12.0.2/validity.cabal 2023-10-09 12:30:39.000000000 +0000 @@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.7. +-- This file has been generated from package.yaml by hpack version 0.35.2. -- -- see: https://github.com/sol/hpack name: validity -version: 0.12.0.1 +version: 0.12.0.2 synopsis: Validity typeclass description: For more info, see . .