Skip to content

vector 0.10.9.0

Oleg Grenrus edited this page May 14, 2019 · 1 revision

Between 0.10.0.1 and 0.10.9.1 the diff is small:

diff -urw vector-0.10.0.1/Data/Vector/Generic.hs vector-0.10.9.1/Data/Vector/Generic.hs
--- vector-0.10.0.1/Data/Vector/Generic.hs	2012-10-11 00:46:53.000000000 +0300
+++ vector-0.10.9.1/Data/Vector/Generic.hs	2013-09-26 06:59:56.000000000 +0300
@@ -194,7 +194,12 @@
                         showsPrec )
 
 import qualified Text.Read as Read
+
+#if __GLASGOW_HASKELL__ >= 707
+import Data.Typeable ( Typeable, gcast1 )
+#else
 import Data.Typeable ( Typeable1, gcast1 )
+#endif
 
 #include "vector.h"
 
@@ -2020,7 +2025,11 @@
 {-# INLINE mkType #-}
 mkType = mkNoRepType
 
+#if __GLASGOW_HASKELL__ >= 707
+dataCast :: (Vector v a, Data a, Typeable v, Typeable t)
+#else
 dataCast :: (Vector v a, Data a, Typeable1 v, Typeable1 t)
+#endif
          => (forall d. Data  d => c (t d)) -> Maybe  (c (v a))
 {-# INLINE dataCast #-}
 dataCast f = gcast1 f
diff -urw vector-0.10.0.1/Data/Vector/Unboxed/Base.hs vector-0.10.9.1/Data/Vector/Unboxed/Base.hs
--- vector-0.10.0.1/Data/Vector/Unboxed/Base.hs	2012-10-11 00:46:53.000000000 +0300
+++ vector-0.10.9.1/Data/Vector/Unboxed/Base.hs	2013-09-26 06:59:56.000000000 +0300
@@ -1,4 +1,7 @@
 {-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleContexts #-}
+#if __GLASGOW_HASKELL__ >= 707
+{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
+#endif
 {-# OPTIONS_HADDOCK hide #-}
 
 -- |
@@ -31,6 +34,9 @@
 import Data.Int  ( Int8, Int16, Int32, Int64 )
 import Data.Complex
 
+#if __GLASGOW_HASKELL__ >= 707
+import Data.Typeable ( Typeable )
+#else
 import Data.Typeable ( Typeable1(..), Typeable2(..), mkTyConApp,
 #if MIN_VERSION_base(4,4,0)
                        mkTyCon3
@@ -38,6 +44,8 @@
                        mkTyCon
 #endif
                      )
+#endif
+
 import Data.Data     ( Data(..) )
 
 #include "vector.h"
@@ -58,7 +66,10 @@
 -- -----------------
 -- Data and Typeable
 -- -----------------
-
+#if __GLASGOW_HASKELL__ >= 707
+deriving instance Typeable Vector
+deriving instance Typeable MVector
+#else
 #if MIN_VERSION_base(4,4,0)
 vectorTyCon = mkTyCon3 "vector"
 #else
@@ -70,6 +81,7 @@
 
 instance Typeable2 MVector where
   typeOf2 _ = mkTyConApp (vectorTyCon "Data.Vector.Unboxed.Mutable" "MVector") []
+#endif
 
 instance (Data a, Unbox a) => Data (Vector a) where
   gfoldl       = G.gfoldl
Only in vector-0.10.9.1: README.md
diff -urw vector-0.10.0.1/tests/vector-tests.cabal vector-0.10.9.1/tests/vector-tests.cabal
--- vector-0.10.0.1/tests/vector-tests.cabal	2012-10-11 00:46:53.000000000 +0300
+++ vector-0.10.9.1/tests/vector-tests.cabal	2013-09-26 06:59:56.000000000 +0300
@@ -11,14 +11,14 @@
 Description:
         Tests for the vector package
 
-Cabal-Version:  >= 1.2
+Cabal-Version:  >= 1.6
 Build-Type:     Simple
 
 
 Executable "vector-tests-O0"
   Main-Is:  Main.hs
 
-  Build-Depends: base >= 4 && < 5, template-haskell, vector == 0.10.0.1,
+  Build-Depends: base >= 4 && < 5, template-haskell, vector == 0.10.9.1,
                  random,
                  QuickCheck >= 2, test-framework, test-framework-quickcheck2
 
@@ -38,7 +38,7 @@
 Executable "vector-tests-O2"
   Main-Is:  Main.hs
 
-  Build-Depends: base >= 4 && < 5, template-haskell, vector == 0.10.0.1,
+  Build-Depends: base >= 4 && < 5, template-haskell, vector == 0.10.9.1,
                  random,
                  QuickCheck >= 2, test-framework, test-framework-quickcheck2
 
diff -urw vector-0.10.0.1/vector.cabal vector-0.10.9.1/vector.cabal
--- vector-0.10.0.1/vector.cabal	2019-05-15 00:15:23.457749576 +0300
+++ vector-0.10.9.1/vector.cabal	2019-05-15 00:14:20.446684619 +0300
@@ -1,13 +1,12 @@
 Name:           vector
-Version:        0.10.0.1
-x-revision: 1
+Version:        0.10.9.1
 License:        BSD3
 License-File:   LICENSE
 Author:         Roman Leshchinskiy <[email protected]>
 Maintainer:     Roman Leshchinskiy <[email protected]>
 Copyright:      (c) Roman Leshchinskiy 2008-2012
-Homepage:       http://code.haskell.org/vector
-Bug-Reports:    http://trac.haskell.org/vector
+Homepage:       https://github.com/haskell/vector
+Bug-Reports:    https://github.com/haskell/vector/issues
 Category:       Data, Data Structures
 Synopsis:       Efficient Arrays
 Description:
@@ -34,11 +33,6 @@
         .
         * <http://haskell.org/haskellwiki/Numeric_Haskell:_A_Vector_Tutorial>
         .
-        Please use the project trac to submit bug reports and feature
-        requests.
-        .
-        * <http://trac.haskell.org/vector>
-        .
         Changes in version 0.10.0.1
         .
         * Require @primitive@ to include workaround for a GHC array copying bug
@@ -52,10 +46,11 @@
 	* Safe Haskell support removed
 	.
 
-Cabal-Version:  >= 1.2.3
+Cabal-Version:  >= 1.6
 Build-Type:     Simple
 
 Extra-Source-Files:
+      README.md
       tests/vector-tests.cabal
       tests/LICENSE
       tests/Setup.hs
@@ -133,7 +128,7 @@
   Install-Includes:
         vector.h
 
-  Build-Depends: base >= 4 && < 4.7
+  Build-Depends: base >= 4 && < 5
                , primitive >= 0.5.0.1 && < 0.6
                , ghc-prim
                , deepseq >= 1.1 && < 1.4
@@ -152,3 +147,6 @@
   if flag(InternalChecks)
     cpp-options: -DVECTOR_INTERNAL_CHECKS
 
+source-repository head
+  type:     git
+  location: https://github.com/haskell/vector

However the 0.10.0.1 .. 0.10.9.0 diff is huge

% diff -urw vector-0.10.0.1 vector-0.10.9.0| wc -l 
3824
% diff -urw vector-0.10.0.1 vector-0.10.9.0 | grep '^Only in'
Only in vector-0.10.9.0/Data/Vector/Fusion: Bundle
Only in vector-0.10.9.0/Data/Vector/Fusion: Bundle.hs
Only in vector-0.10.0.1/Data/Vector/Fusion/Stream: Size.hs
Only in vector-0.10.0.1/Data/Vector/Fusion: Stream.hs
Only in vector-0.10.9.0/Data/Vector/Generic: Mutable
Only in vector-0.10.9.0: README.md
Only in vector-0.10.9.0/tests/Tests: Bundle.hs
Only in vector-0.10.0.1/tests/Tests: Stream.hs

Thus I (phadej) blacklist 0.10.9.0 so dependency sweeps don't pick it.

Clone this wiki locally