Skip to content
Snippets Groups Projects
Commit c7adf7ad authored by Ryan Scott's avatar Ryan Scott
Browse files

Depend on base-orphans

parent bfbf269d
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ import Utilities as Util
import Data.Functor.Identity
import qualified Data.Traversable as T (Traversable(..))
import Data.Foldable (Foldable(foldMap))
import Data.Orphans ()
import qualified Data.Vector.Generic as V
import qualified Data.Vector
......@@ -70,14 +71,6 @@ type VectorContext a v = ( Eq (v a), Show (v a), Arbitrary (v a), CoArbitrary (
-- TODO: test non-IVector stuff?
#if !MIN_VERSION_base(4,7,0)
instance Foldable ((,) a) where
foldMap f (_, b) = f b
instance T.Traversable ((,) a) where
traverse f (a, b) = fmap ((,) a) $ f b
#endif
testSanity :: forall a v. (CommonContext a v) => v a -> [Test]
testSanity _ = [
testProperty "fromList.toList == id" prop_fromList_toList,
......
......@@ -189,7 +189,7 @@ test-suite vector-tests-O0
Utilities
hs-source-dirs: tests
Build-Depends: base >= 4.5 && < 5, template-haskell, vector,
Build-Depends: base >= 4.5 && < 5, template-haskell, base-orphan >= 0.6, vector,
primitive, random,
QuickCheck >= 2.9 && < 2.10 , HUnit, test-framework,
test-framework-hunit, test-framework-quickcheck2,
......@@ -227,7 +227,7 @@ test-suite vector-tests-O2
Utilities
hs-source-dirs: tests
Build-Depends: base >= 4.5 && < 5, template-haskell, vector,
Build-Depends: base >= 4.5 && < 5, template-haskell, base-orphan >= 0.6, vector,
primitive, random,
QuickCheck >= 2.9 && < 2.10 , HUnit, test-framework,
test-framework-hunit, test-framework-quickcheck2,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment