vector 0.12.1.1 → 0.12.1.2
raw patch · 9 files changed
+55/−23 lines, 9 filesdep ~base
Dependency ranges changed: base
Files
- Data/Vector.hs +4/−0
- Data/Vector/Generic.hs +16/−3
- Data/Vector/Generic/Mutable/Base.hs +2/−0
- Data/Vector/Primitive.hs +3/−0
- Data/Vector/Storable.hs +3/−0
- Data/Vector/Unboxed.hs +2/−0
- Data/Vector/Unboxed/Base.hs +2/−0
- changelog.md +22/−19
- vector.cabal +1/−1
Data/Vector.hs view
@@ -232,6 +232,7 @@ {-# INLINEABLE rnf #-} #if MIN_VERSION_deepseq(1,4,3)+-- | @since 0.12.1.0 instance NFData1 Vector where liftRnf = liftRnfV {-# INLINEABLE liftRnf #-}@@ -358,6 +359,7 @@ fail = Fail.fail -- == \ _str -> empty #endif +-- | @since 0.12.1.0 instance Fail.MonadFail Vector where {-# INLINE fail #-} fail _ = empty@@ -1266,6 +1268,8 @@ -- | /O(n)/ Split the vector in two parts, the first one containing the -- @Right@ elements and the second containing the @Left@ elements. -- The relative order of the elements is preserved.+--+-- @since 0.12.1.0 partitionWith :: (a -> Either b c) -> Vector a -> (Vector b, Vector c) {-# INLINE partitionWith #-} partitionWith = G.partitionWith
Data/Vector/Generic.hs view
@@ -165,7 +165,7 @@ liftShowsPrec, liftReadsPrec, -- ** @Data@ and @Typeable@- gfoldl, gunfold, dataCast, mkVecType, mkVecConstr+ gfoldl, gunfold, dataCast, mkVecType, mkVecConstr, mkType ) where import Data.Vector.Generic.Base@@ -212,10 +212,19 @@ #include "vector.h" import Data.Data ( Data, DataType, Constr, Fixity(Prefix),- mkDataType, mkConstr, constrIndex )-+ mkDataType, mkConstr, constrIndex,+#if MIN_VERSION_base(4,2,0)+ mkNoRepType )+#else+ mkNorepType )+#endif import qualified Data.Traversable as T (Traversable(mapM)) +#if !MIN_VERSION_base(4,2,0)+mkNoRepType :: String -> DataType+mkNoRepType = mkNorepType+#endif+ -- Length information -- ------------------ @@ -2208,6 +2217,10 @@ mkVecType :: String -> DataType {-# INLINE mkVecType #-} mkVecType name = mkDataType name [mkVecConstr name]++mkType :: String -> DataType+{-# INLINE mkType #-}+mkType = mkNoRepType gunfold :: (Vector v a, Data a) => (forall b r. Data b => c (b -> r) -> c r)
Data/Vector/Generic/Mutable/Base.hs view
@@ -49,6 +49,8 @@ -- -- Vectors that are necessarily initialized as part of creation may implement -- this as a no-op.+ --+ -- @since 0.11.0.0 basicInitialize :: PrimMonad m => v (PrimState m) a -> m () -- | Create a mutable vector of the given length and fill it with an
Data/Vector/Primitive.hs view
@@ -193,6 +193,7 @@ rnf (Vector _ _ _) = () #if MIN_VERSION_deepseq(1,4,3)+-- | @since 0.12.1.0 instance NFData1 Vector where liftRnf _ (Vector _ _ _) = () #endif@@ -993,6 +994,8 @@ -- | /O(n)/ Split the vector in two parts, the first one containing the -- @Right@ elements and the second containing the @Left@ elements. -- The relative order of the elements is preserved.+--+-- @since 0.12.1.0 partitionWith :: (Prim a, Prim b, Prim c) => (a -> Either b c) -> Vector a -> (Vector b, Vector c) {-# INLINE partitionWith #-} partitionWith = G.partitionWith
Data/Vector/Storable.hs view
@@ -202,6 +202,7 @@ rnf (Vector _ _) = () #if MIN_VERSION_deepseq(1,4,3)+-- | @since 0.12.1.0 instance NFData1 Vector where liftRnf _ (Vector _ _) = () #endif@@ -1005,6 +1006,8 @@ -- | /O(n)/ Split the vector in two parts, the first one containing the -- @Right@ elements and the second containing the @Left@ elements. -- The relative order of the elements is preserved.+--+-- @since 0.12.1.0 partitionWith :: (Storable a, Storable b, Storable c) => (a -> Either b c) -> Vector a -> (Vector b, Vector c) {-# INLINE partitionWith #-} partitionWith = G.partitionWith
Data/Vector/Unboxed.hs view
@@ -1039,6 +1039,8 @@ -- | /O(n)/ Split the vector in two parts, the first one containing the -- @Right@ elements and the second containing the @Left@ elements. -- The relative order of the elements is preserved.+--+-- @since 0.12.1.0 partitionWith :: (Unbox a, Unbox b, Unbox c) => (a -> Either b c) -> Vector a -> (Vector b, Vector c) {-# INLINE partitionWith #-} partitionWith = G.partitionWith
Data/Vector/Unboxed/Base.hs view
@@ -88,8 +88,10 @@ instance NFData (MVector s a) where rnf !_ = () #if MIN_VERSION_deepseq(1,4,3)+-- | @since 0.12.1.0 instance NFData1 Vector where liftRnf _ !_ = ()+-- | @since 0.12.1.0 instance NFData1 (MVector s) where liftRnf _ !_ = () #endif
changelog.md view
@@ -1,7 +1,11 @@-# Changes in version 0.12.1.1+# Changes in version 0.12.1.2++ * Fix for lost function `Data.Vector.Generic.mkType`: [#287](https://github.com/haskell/vector/issues/287)++# Changes in version 0.12.1.1 (deprecated) * add semigrioups dep to test suite so CI actually runs again on GHC < 8 -# Changes in version 0.12.1.0+# Changes in version 0.12.1.0 (deprecated) * Fix integer overflows in specializations of Bundle/Stream enumFromTo on Integral types * Fix possibility of OutOfMemory with `take` and very large arguments. * Fix `slice` function causing segfault and not checking the bounds properly.@@ -22,23 +26,22 @@ `All`, `Alt`, and `Compose`. * Add `NFData1` instances for applicable `Vector` types. -#Changes in version 0.12.0.3+# Changes in version 0.12.0.3 * Monad Fail support -#Changes in version 0.12.0.2+# Changes in version 0.12.0.2 * Fixes issue #220, compact heap operations crashing on boxed vectors constructed using traverse. * backport injective type family support * Cleanup the memset code internal to storable vector modules to be compatible with future Primitive releases --#Changes in version 0.12.0.1+# Changes in version 0.12.0.1 * Make sure `length` can be inlined * Include modules that test-suites depend on in other-modules -#Changes in version 0.12.0.0+# Changes in version 0.12.0.0 * Documentation fixes/additions * New functions: createT, iscanl/r, iterateNM, unfoldrM, uniq@@ -50,7 +53,7 @@ helper functions. * Relax context for `Unbox (Complex a)`. -#Changes in version 0.11.0.0+# Changes in version 0.11.0.0 * Define `Applicative` instances for `Data.Vector.Fusion.Util.{Box,Id}` * Define non-bottom `fail` for `instance Monad Vector`@@ -60,50 +63,50 @@ - Memory is initialized on creation of unboxed vectors * Changes to SPEC usage to allow building under more conditions -#Changes in version 0.10.12.3+# Changes in version 0.10.12.3 * Allow building with `primtive-0.6` -#Changes in version 0.10.12.2+# Changes in version 0.10.12.2 * Add support for `deepseq-1.4.0.0` -#Changes in version 0.10.12.1+# Changes in version 0.10.12.1 * Fixed compilation on non-head GHCs -#Changes in version 0.10.12.0+# Changes in version 0.10.12.0 * Export MVector constructor from Data.Vector.Primitive to match Vector's (which was already exported). * Fix building on GHC 7.9 by adding Applicative instances for Id and Box -#Changes in version 0.10.11.0+# Changes in version 0.10.11.0 * Support OverloadedLists for boxed Vector in GHC >= 7.8 -#Changes in version 0.10.10.0+# Changes in version 0.10.10.0 * Minor version bump to rectify PVP violation occured in 0.10.9.3 release -#Changes in version 0.10.9.3 (deprecated)+# Changes in version 0.10.9.3 (deprecated) * Add support for OverloadedLists in GHC >= 7.8 -#Changes in version 0.10.9.2+# Changes in version 0.10.9.2 * Fix compilation with GHC 7.9 -#Changes in version 0.10.9.1+# Changes in version 0.10.9.1 * Implement poly-kinded Typeable -#Changes in version 0.10.0.1+# Changes in version 0.10.0.1 * Require `primitive` to include workaround for a GHC array copying bug -#Changes in version 0.10+# Changes in version 0.10 * `NFData` instances * More efficient block fills
vector.cabal view
@@ -1,5 +1,5 @@ Name: vector-Version: 0.12.1.1+Version: 0.12.1.2 -- don't forget to update the changelog file! License: BSD3 License-File: LICENSE