Skip to content

Commit e793c75

Browse files
committed
Add orphan Foldable ((,) a) to tests on old GHCs
1 parent 79d9aab commit e793c75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Tests/Vector.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ import Control.Monad.Trans.Writer
6969
-- TODO: test non-IVector stuff?
7070

7171
#if !MIN_VERSION_base(4,7,0)
72+
instance Foldable ((,) a) where
73+
foldMap f (_, b) = f b
74+
7275
instance Traversable ((,) a) where
7376
traverse f (a, b) = fmap ((,) a) $ f b
7477
#endif

0 commit comments

Comments
 (0)