Skip to content

Commit 85734cf

Browse files
Deal with breaking change in QuickCheck
1 parent 4ccd6b0 commit 85734cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Constrained/Core.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE FlexibleInstances #-}
23
{-# LANGUAGE GADTs #-}
34
{-# LANGUAGE ImportQualifiedPost #-}
@@ -135,7 +136,9 @@ instance Typeable c => Show (Evidence c) where
135136
unionWithMaybe :: (a -> a -> a) -> Maybe a -> Maybe a -> Maybe a
136137
unionWithMaybe f ma ma' = (f <$> ma <*> ma') <|> ma <|> ma'
137138

139+
#if !MIN_VERSION_QuickCheck(2, 17, 0)
138140
instance Arbitrary a => Arbitrary (NonEmpty a) where
139141
arbitrary = do
140142
NonEmpty xs <- arbitrary
141143
pure (NE.fromList xs)
144+
#endif

0 commit comments

Comments
 (0)