Skip to content

Commit 5e5c02a

Browse files
committed
Fix testsuite with QuickCheck >= 2.17.0
1 parent 0136cfa commit 5e5c02a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

filepath.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ test-suite filepath-equivalent-tests
145145
, os-string >=2.0.1
146146
, tasty
147147
, tasty-quickcheck
148+
, QuickCheck
148149

149150
test-suite abstract-filepath
150151
default-language: Haskell2010

tests/filepath-equivalent-tests/Gen.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE OverlappingInstances #-}
23
{-# LANGUAGE FlexibleInstances #-}
34
{-# LANGUAGE DeriveGeneric #-}
@@ -196,7 +197,8 @@ instance Arbitrary [Separator] where
196197
arbitrary = listOf' arbitrary
197198
shrink = genericShrink
198199

200+
#if !MIN_VERSION_QuickCheck(2,17,0)
199201
instance Arbitrary a => Arbitrary (NonEmpty a) where
200202
arbitrary = NE.fromList <$> listOf1' arbitrary
201203
shrink = genericShrink
202-
204+
#endif

0 commit comments

Comments
 (0)