Skip to content

Commit eec0cca

Browse files
committed
Add orphan Traversable ((,) a) instance in tests on old GHCs
1 parent 9fabf08 commit eec0cca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Tests/Vector.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ import Control.Monad.Trans.Writer
6868

6969
-- TODO: test non-IVector stuff?
7070

71+
#if !MIN_VERSION_base(4,7,0)
72+
instance Traversable ((,) a) where
73+
traverse f (a, b) = fmap ((,) a) $ f b
74+
#endif
75+
7176
testSanity :: forall a v. (COMMON_CONTEXT(a, v)) => v a -> [Test]
7277
testSanity _ = [
7378
testProperty "fromList.toList == id" prop_fromList_toList,

0 commit comments

Comments
 (0)