Skip to content

Commit d6ad33a

Browse files
committed
Use mapM instead of traverse in the test suite
1 parent e2a43cf commit d6ad33a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Tests/Vector.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Tests.Vector (tests) where
33
import Boilerplater
44
import Utilities as Util
55

6-
import Data.Traversable (Traversable(..))
6+
import qualified Data.Traversable as T (Traversable(..))
77
import Data.Foldable (Foldable(foldMap))
88

99
import qualified Data.Vector.Generic as V
@@ -73,7 +73,7 @@ import Control.Monad.Trans.Writer
7373
instance Foldable ((,) a) where
7474
foldMap f (_, b) = f b
7575

76-
instance Traversable ((,) a) where
76+
instance T.Traversable ((,) a) where
7777
traverse f (a, b) = fmap ((,) a) $ f b
7878
#endif
7979

@@ -233,7 +233,7 @@ testPolymorphicFunctions _ = $(testProperties [
233233
= (\n _ _ -> n < 1000) ===> V.iterateN `eq` (\n f -> take n . iterate f)
234234

235235
prop_createT :: P ((a, v a) -> (a, v a))
236-
prop_createT = (\v -> V.createT (traverse V.thaw v)) `eq` id
236+
prop_createT = (\v -> V.createT (T.mapM V.thaw v)) `eq` id
237237

238238
prop_head :: P (v a -> a) = not . V.null ===> V.head `eq` head
239239
prop_last :: P (v a -> a) = not . V.null ===> V.last `eq` last

0 commit comments

Comments
 (0)