File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -217,9 +217,7 @@ mkNoRepType :: String -> DataType
217
217
mkNoRepType = mkNorepType
218
218
#endif
219
219
220
- #if !MIN_VERSION_base(4,8,0)
221
- import Data.Traversable (Traversable , traverse )
222
- #endif
220
+ import qualified Data.Traversable as T (Traversable (mapM ))
223
221
224
222
-- Length information
225
223
-- ------------------
@@ -723,9 +721,11 @@ create :: Vector v a => (forall s. ST s (Mutable v s a)) -> v a
723
721
create p = new (New. create p)
724
722
725
723
-- | Execute the monadic action and freeze the resulting vectors.
726
- createT :: (Traversable f , Vector v a ) => (forall s . ST s (f (Mutable v s a ))) -> f (v a )
724
+ createT
725
+ :: (T. Traversable f , Vector v a )
726
+ => (forall s . ST s (f (Mutable v s a ))) -> f (v a )
727
727
{-# INLINE createT #-}
728
- createT p = runST (p >>= traverse unsafeFreeze)
728
+ createT p = runST (p >>= T. mapM unsafeFreeze)
729
729
730
730
-- Restricting memory usage
731
731
-- ------------------------
You can’t perform that action at this time.
0 commit comments