genvalidity 1.1.1.0 → 1.1.2.0
raw patch · 5 files changed
+17/−6 lines, 5 filesdep ~validitysetup-changed
Dependency ranges changed: validity
Files
- CHANGELOG.md +6/−0
- Setup.hs +2/−0
- genvalidity.cabal +3/−3
- src/Data/GenValidity.hs +5/−1
- test/Data/GenValidity/GenericSpec.hs +1/−2
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [1.1.2.0] - 2026-11-26++### Added++* `GenValid` instances for `Min` and `Max` from `Data.Semigroup`+ ## [1.1.1.0] - 2024-07-18 ### Added
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
genvalidity.cabal view
@@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.36.0.+-- This file has been generated from package.yaml by hpack version 0.38.3. -- -- see: https://github.com/sol/hpack name: genvalidity-version: 1.1.1.0+version: 1.1.2.0 synopsis: Testing utilities for the validity library description: Note: There are companion instance packages for this library: .@@ -58,7 +58,7 @@ QuickCheck >=2.13 , base >=4.13 && <5 , random >=1.1- , validity >=0.12.1+ , validity >=0.12.2 default-language: Haskell2010 test-suite genvalidity-test
src/Data/GenValidity.hs view
@@ -213,7 +213,7 @@ return (a, b, c, d, e) shrinkValid (a, b, c, d, e) = [ (a', b', c', d', e')- | (a', (b', (c', (d', e')))) <- shrinkValid (a, (b, (c, (d, e))))+ | (a', (b', (c', (d', e')))) <- shrinkValid (a, (b, (c, (d, e)))) ] instance (GenValid a) => GenValid (Maybe a) where@@ -388,6 +388,10 @@ deriving newtype instance (GenValid a) => GenValid (Semigroup.First a) deriving newtype instance (GenValid a) => GenValid (Semigroup.Last a)++deriving newtype instance (GenValid a) => GenValid (Semigroup.Min a)++deriving newtype instance (GenValid a) => GenValid (Semigroup.Max a) deriving newtype instance (GenValid a) => GenValid (Monoid.First a)
test/Data/GenValidity/GenericSpec.hs view
@@ -1,4 +1,3 @@-{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-}@@ -98,7 +97,7 @@ data MyType = MyType Double Ordering- deriving (Show, Eq, Generic, Typeable)+ deriving (Show, Eq, Generic) instance Validity MyType