Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 12 additions and 4 deletions.
  1. +5 −0 CHANGES.md
  2. +5 −2 Test/SmallCheck/Series.hs
  3. +2 −2 smallcheck.cabal
5 CHANGES.md
View
@@ -1,6 +1,11 @@
Changes
=======
+Version 1.0.2
+-------------
+
+Fix a bug in the generic instance
+
Version 1.0.1
-------------
7 Test/SmallCheck/Series.hs
View
@@ -27,7 +27,7 @@
GeneralizedNewtypeDeriving, FlexibleContexts #-}
-- The following is needed for generic instances
{-# LANGUAGE DefaultSignatures, FlexibleContexts, TypeOperators,
- TypeSynonymInstances, FlexibleInstances #-}
+ TypeSynonymInstances, FlexibleInstances, OverlappingInstances #-}
module Test.SmallCheck.Series (
-- {{{
@@ -363,7 +363,7 @@ instance CoSerial m c => GCoSerial m (K1 i c) where
{-# INLINE gCoseries #-}
instance GSerial m U1 where
- gSeries = cons0 U1
+ gSeries = pure U1
{-# INLINE gSeries #-}
instance GCoSerial m U1 where
gCoseries rs = constM rs
@@ -391,6 +391,9 @@ instance (Monad m, GCoSerial m a, GCoSerial m b) => GCoSerial m (a :+: b) where
R1 y -> g y
{-# INLINE gCoseries #-}
+instance GSerial m f => GSerial m (C1 c f) where
+ gSeries = M1 <$> decDepth gSeries
+ {-# INLINE gSeries #-}
-- }}}
------------------------------
4 smallcheck.cabal
View
@@ -1,5 +1,5 @@
Name: smallcheck
-Version: 1.0.1
+Version: 1.0.2
Cabal-Version: >= 1.6
License: BSD3
License-File: LICENSE
@@ -27,7 +27,7 @@ Source-repository head
Source-repository this
type: git
location: git://github.com/feuerbach/smallcheck.git
- tag: v1.0.1
+ tag: v1.0.2
Library

No commit comments for this range

Something went wrong with that request. Please try again.