Hello community, here is the log from the commit of package ghc-vector for openSUSE:Factory checked in at 2015-05-21 08:12:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-vector (Old) and /work/SRC/openSUSE:Factory/.ghc-vector.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-vector" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-vector/ghc-vector.changes 2014-11-26 20:55:21.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-vector.new/ghc-vector.changes 2015-05-21 08:12:20.000000000 +0200 @@ -1,0 +2,14 @@ +Tue Apr 14 08:14:02 UTC 2015 - [email protected] + +- update to 0.10.12.3 +* Allow building with `primtive-0.6` +* Add support for `deepseq-1.4.0.0` +* Fixed compilation on non-head GHCs +* 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 +* Support OverloadedLists for boxed Vector in GHC >= 7.8 +* Add support for OverloadedLists in GHC >= 7.8 +* Fix compilation with GHC 7.9 + +------------------------------------------------------------------- Old: ---- vector-0.10.9.1.tar.gz New: ---- vector-0.10.12.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-vector.spec ++++++ --- /var/tmp/diff_new_pack.cQbdDV/_old 2015-05-21 08:12:20.000000000 +0200 +++ /var/tmp/diff_new_pack.cQbdDV/_new 2015-05-21 08:12:20.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-vector # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %global pkg_name vector Name: ghc-vector -Version: 0.10.9.1 +Version: 0.10.12.3 Release: 0 Summary: Efficient Arrays License: BSD-3-Clause ++++++ vector-0.10.9.1.tar.gz -> vector-0.10.12.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Fusion/Stream/Monadic.hs new/vector-0.10.12.3/Data/Vector/Fusion/Stream/Monadic.hs --- old/vector-0.10.9.1/Data/Vector/Fusion/Stream/Monadic.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Fusion/Stream/Monadic.hs 2015-03-28 02:35:24.000000000 +0100 @@ -1403,7 +1403,7 @@ enumFromTo_double :: (Monad m, Ord a, RealFrac a) => a -> a -> Stream m a {-# INLINE_STREAM enumFromTo_double #-} -enumFromTo_double n m = n `seq` m `seq` Stream step n (Max (len n m)) +enumFromTo_double n m = n `seq` m `seq` Stream step n (Max (len n lim)) where lim = m + 1/2 -- important to float out diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Fusion/Util.hs new/vector-0.10.12.3/Data/Vector/Fusion/Util.hs --- old/vector-0.10.9.1/Data/Vector/Fusion/Util.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Fusion/Util.hs 2015-03-28 02:35:24.000000000 +0100 @@ -16,12 +16,18 @@ delay_inline, delayed_min ) where +import Control.Applicative + -- | Identity monad newtype Id a = Id { unId :: a } instance Functor Id where fmap f (Id x) = Id (f x) +instance Applicative Id where + pure = Id + Id f <*> Id x = Id (f x) + instance Monad Id where return = Id Id x >>= f = f x @@ -32,6 +38,10 @@ instance Functor Box where fmap f (Box x) = Box (f x) +instance Applicative Box where + pure = Box + Box f <*> Box x = Box (f x) + instance Monad Box where return = Box Box x >>= f = f x diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Generic/Mutable.hs new/vector-0.10.12.3/Data/Vector/Generic/Mutable.hs --- old/vector-0.10.9.1/Data/Vector/Generic/Mutable.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Generic/Mutable.hs 2015-03-28 02:35:24.000000000 +0100 @@ -1,4 +1,5 @@ -{-# LANGUAGE MultiParamTypeClasses, BangPatterns, ScopedTypeVariables #-} +{-# LANGUAGE MultiParamTypeClasses, BangPatterns, ScopedTypeVariables, + TypeFamilies #-} -- | -- Module : Data.Vector.Generic.Mutable -- Copyright : (c) Roman Leshchinskiy 2008-2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Mutable.hs new/vector-0.10.12.3/Data/Vector/Mutable.hs --- old/vector-0.10.9.1/Data/Vector/Mutable.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Mutable.hs 2015-03-28 02:35:24.000000000 +0100 @@ -1,4 +1,5 @@ -{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, BangPatterns #-} +{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, BangPatterns, + TypeFamilies #-} -- | -- Module : Data.Vector.Mutable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Primitive/Mutable.hs new/vector-0.10.12.3/Data/Vector/Primitive/Mutable.hs --- old/vector-0.10.9.1/Data/Vector/Primitive/Mutable.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Primitive/Mutable.hs 2015-03-28 02:35:24.000000000 +0100 @@ -55,7 +55,7 @@ import Control.Monad.Primitive import Control.Monad ( liftM ) -import Control.DeepSeq ( NFData ) +import Control.DeepSeq ( NFData(rnf) ) import Prelude hiding ( length, null, replicate, reverse, map, read, take, drop, splitAt, init, tail ) @@ -67,13 +67,14 @@ -- | Mutable vectors of primitive types. data MVector s a = MVector {-# UNPACK #-} !Int {-# UNPACK #-} !Int - {-# UNPACK #-} !(MutableByteArray s) + {-# UNPACK #-} !(MutableByteArray s) -- ^ offset, length, underlying mutable byte array deriving ( Typeable ) type IOVector = MVector RealWorld type STVector s = MVector s -instance NFData (MVector s a) +instance NFData (MVector s a) where + rnf (MVector _ _ _) = () instance Prim a => G.MVector MVector a where basicLength (MVector _ n _) = n diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Primitive.hs new/vector-0.10.12.3/Data/Vector/Primitive.hs --- old/vector-0.10.9.1/Data/Vector/Primitive.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Primitive.hs 2015-03-28 02:35:24.000000000 +0100 @@ -17,7 +17,7 @@ module Data.Vector.Primitive ( -- * Primitive vectors - Vector, MVector(..), Prim, + Vector(..), MVector(..), Prim, -- * Accessors @@ -140,7 +140,7 @@ import Data.Primitive.ByteArray import Data.Primitive ( Prim, sizeOf ) -import Control.DeepSeq ( NFData ) +import Control.DeepSeq ( NFData(rnf) ) import Control.Monad ( liftM ) import Control.Monad.ST ( ST ) @@ -168,13 +168,18 @@ import Data.Monoid ( Monoid(..) ) +#if __GLASGOW_HASKELL__ >= 708 +import qualified GHC.Exts as Exts +#endif + -- | Unboxed vectors of primitive types data Vector a = Vector {-# UNPACK #-} !Int {-# UNPACK #-} !Int - {-# UNPACK #-} !ByteArray + {-# UNPACK #-} !ByteArray -- ^ offset, length, underlying byte array deriving ( Typeable ) -instance NFData (Vector a) +instance NFData (Vector a) where + rnf (Vector _ _ _) = () instance (Show a, Prim a) => Show (Vector a) where showsPrec = G.showsPrec @@ -255,6 +260,15 @@ {-# INLINE mconcat #-} mconcat = concat +#if __GLASGOW_HASKELL__ >= 708 + +instance Prim a => Exts.IsList (Vector a) where + type Item (Vector a) = a + fromList = fromList + fromListN = fromListN + toList = toList + +#endif -- Length -- ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Storable/Mutable.hs new/vector-0.10.12.3/Data/Vector/Storable/Mutable.hs --- old/vector-0.10.9.1/Data/Vector/Storable/Mutable.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Storable/Mutable.hs 2015-03-28 02:35:24.000000000 +0100 @@ -57,7 +57,7 @@ unsafeWith ) where -import Control.DeepSeq ( NFData ) +import Control.DeepSeq ( NFData(rnf) ) import qualified Data.Vector.Generic.Mutable as G import Data.Vector.Storable.Internal @@ -95,7 +95,8 @@ type IOVector = MVector RealWorld type STVector s = MVector s -instance NFData (MVector s a) +instance NFData (MVector s a) where + rnf (MVector _ _) = () instance Storable a => G.MVector MVector a where {-# INLINE basicLength #-} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Storable.hs new/vector-0.10.12.3/Data/Vector/Storable.hs --- old/vector-0.10.9.1/Data/Vector/Storable.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Storable.hs 2015-03-28 02:35:24.000000000 +0100 @@ -146,7 +146,7 @@ import Foreign.Ptr import Foreign.Marshal.Array ( advancePtr, copyArray ) -import Control.DeepSeq ( NFData ) +import Control.DeepSeq ( NFData(rnf) ) import Control.Monad.ST ( ST ) import Control.Monad.Primitive @@ -173,6 +173,10 @@ import Data.Monoid ( Monoid(..) ) +#if __GLASGOW_HASKELL__ >= 708 +import qualified GHC.Exts as Exts +#endif + #include "vector.h" -- | 'Storable'-based vectors @@ -180,7 +184,8 @@ {-# UNPACK #-} !(ForeignPtr a) deriving ( Typeable ) -instance NFData (Vector a) +instance NFData (Vector a) where + rnf (Vector _ _) = () instance (Show a, Storable a) => Show (Vector a) where showsPrec = G.showsPrec @@ -262,6 +267,16 @@ {-# INLINE mconcat #-} mconcat = concat +#if __GLASGOW_HASKELL__ >= 708 + +instance Storable a => Exts.IsList (Vector a) where + type Item (Vector a) = a + fromList = fromList + fromListN = fromListN + toList = toList + +#endif + -- Length -- ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Unboxed/Base.hs new/vector-0.10.12.3/Data/Vector/Unboxed/Base.hs --- old/vector-0.10.9.1/Data/Vector/Unboxed/Base.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Unboxed/Base.hs 2015-03-28 02:35:24.000000000 +0100 @@ -1,4 +1,4 @@ -{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleContexts #-} +{-# LANGUAGE BangPatterns, MultiParamTypeClasses, TypeFamilies, FlexibleContexts #-} #if __GLASGOW_HASKELL__ >= 707 {-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-} #endif @@ -25,7 +25,7 @@ import qualified Data.Vector.Primitive as P -import Control.DeepSeq ( NFData ) +import Control.DeepSeq ( NFData(rnf) ) import Control.Monad.Primitive import Control.Monad ( liftM ) @@ -60,8 +60,8 @@ class (G.Vector Vector a, M.MVector MVector a) => Unbox a -instance NFData (Vector a) -instance NFData (MVector s a) +instance NFData (Vector a) where rnf !_ = () +instance NFData (MVector s a) where rnf !_ = () -- ----------------- -- Data and Typeable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector/Unboxed.hs new/vector-0.10.12.3/Data/Vector/Unboxed.hs --- old/vector-0.10.9.1/Data/Vector/Unboxed.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector/Unboxed.hs 2015-03-28 02:35:24.000000000 +0100 @@ -1,4 +1,4 @@ -{-# LANGUAGE Rank2Types #-} +{-# LANGUAGE Rank2Types, TypeFamilies #-} -- | -- Module : Data.Vector.Unboxed @@ -188,6 +188,10 @@ import Data.Monoid ( Monoid(..) ) +#if __GLASGOW_HASKELL__ >= 708 +import qualified GHC.Exts as Exts (IsList(..)) +#endif + #include "vector.h" -- See http://trac.haskell.org/vector/ticket/12 @@ -232,6 +236,16 @@ readPrec = G.readPrec readListPrec = readListPrecDefault +#if __GLASGOW_HASKELL__ >= 708 + +instance (Unbox e) => Exts.IsList (Vector e) where + type Item (Vector e) = e + fromList = fromList + fromListN = fromListN + toList = toList + +#endif + -- Length information -- ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/Data/Vector.hs new/vector-0.10.12.3/Data/Vector.hs --- old/vector-0.10.9.1/Data/Vector.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/Data/Vector.hs 2015-03-28 02:35:24.000000000 +0100 @@ -1,4 +1,5 @@ -{-# LANGUAGE FlexibleInstances +{-# LANGUAGE CPP + , FlexibleInstances , MultiParamTypeClasses , TypeFamilies , Rank2Types @@ -191,6 +192,10 @@ import qualified Data.Foldable as Foldable import qualified Data.Traversable as Traversable +#if __GLASGOW_HASKELL__ >= 708 +import qualified GHC.Exts as Exts +#endif + -- | Boxed vectors, supporting efficient slicing. data Vector a = Vector {-# UNPACK #-} !Int {-# UNPACK #-} !Int @@ -210,6 +215,14 @@ readPrec = G.readPrec readListPrec = readListPrecDefault +#if __GLASGOW_HASKELL__ >= 708 +instance Exts.IsList (Vector a) where + type Item (Vector a) = a + fromList = fromList + fromListN = fromListN + toList = toList +#endif + instance Data a => Data (Vector a) where gfoldl = G.gfoldl toConstr _ = error "toConstr" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/changelog new/vector-0.10.12.3/changelog --- old/vector-0.10.9.1/changelog 1970-01-01 01:00:00.000000000 +0100 +++ new/vector-0.10.12.3/changelog 2015-03-28 02:35:24.000000000 +0100 @@ -0,0 +1,48 @@ +Changes in version 0.10.12.3 + + * Allow building with `primtive-0.6` + +Changes in version 0.10.12.2 + + * Add support for `deepseq-1.4.0.0` + +Changes in version 0.10.12.1 + + * Fixed compilation on non-head GHCs + +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 + + * Support OverloadedLists for boxed Vector in GHC >= 7.8 + +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) + + * Add support for OverloadedLists in GHC >= 7.8 + +Changes in version 0.10.9.2 + + * Fix compilation with GHC 7.9 + +Changes in version 0.10.9.1 + + * Implement poly-kinded Typeable + +Changes in version 0.10.0.1 + + * Require `primitive` to include workaround for a GHC array copying bug + +Changes in version 0.10 + + * `NFData` instances + * More efficient block fills + * Safe Haskell support removed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/tests/Tests/Move.hs new/vector-0.10.12.3/tests/Tests/Move.hs --- old/vector-0.10.9.1/tests/Tests/Move.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/tests/Tests/Move.hs 2015-03-28 02:35:24.000000000 +0100 @@ -2,6 +2,8 @@ import Test.QuickCheck import Test.Framework.Providers.QuickCheck2 +import Test.QuickCheck.Property (Property(..)) + import Utilities () @@ -14,21 +16,22 @@ import qualified Data.Vector.Unboxed as U basicMove :: G.Vector v a => v a -> Int -> Int -> Int -> v a -basicMove v dstOff srcOff len +basicMove v dstOff srcOff len | len > 0 = G.modify (\ mv -> G.copy (M.slice dstOff len mv) (G.slice srcOff len v)) v | otherwise = v testMove :: (G.Vector v a, Show (v a), Eq (v a)) => v a -> Property -testMove v = G.length v > 0 ==> (do +testMove v = G.length v > 0 ==> (MkProperty $ do dstOff <- choose (0, G.length v - 1) srcOff <- choose (0, G.length v - 1) len <- choose (1, G.length v - max dstOff srcOff) - let expected = basicMove v dstOff srcOff len - let actual = G.modify (\ mv -> M.move (M.slice dstOff len mv) (M.slice srcOff len mv)) v - printTestCase ("Move: " ++ show (v, dstOff, srcOff, len)) (expected == actual)) + expected <- return $ basicMove v dstOff srcOff len + actual <- return $ G.modify (\ mv -> M.move (M.slice dstOff len mv) (M.slice srcOff len mv)) v + unProperty $ counterexample ("Move: " ++ show (v, dstOff, srcOff, len)) (expected == actual)) + tests = [testProperty "Data.Vector.Mutable (Move)" (testMove :: V.Vector Int -> Property), testProperty "Data.Vector.Primitive.Mutable (Move)" (testMove :: P.Vector Int -> Property), testProperty "Data.Vector.Unboxed.Mutable (Move)" (testMove :: U.Vector Int -> Property), - testProperty "Data.Vector.Storable.Mutable (Move)" (testMove :: S.Vector Int -> Property)] \ No newline at end of file + testProperty "Data.Vector.Storable.Mutable (Move)" (testMove :: S.Vector Int -> Property)] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/tests/Tests/Vector.hs new/vector-0.10.12.3/tests/Tests/Vector.hs --- old/vector-0.10.9.1/tests/Tests/Vector.hs 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/tests/Tests/Vector.hs 2015-03-28 02:35:24.000000000 +0100 @@ -1,7 +1,7 @@ module Tests.Vector (tests) where import Boilerplater -import Utilities +import Utilities as Util import qualified Data.Vector.Generic as V import qualified Data.Vector @@ -115,7 +115,7 @@ 'prop_concat, -- Restricting memory usage - 'prop_force, + 'prop_force, -- Bulk updates (FIXME) @@ -207,7 +207,7 @@ prop_concat :: P ([v a] -> v a) = V.concat `eq` concat prop_force :: P (v a -> v a) = V.force `eq` id prop_generate :: P (Int -> (Int -> a) -> v a) - = (\n _ -> n < 1000) ===> V.generate `eq` generate + = (\n _ -> n < 1000) ===> V.generate `eq` Util.generate prop_iterateN :: P (Int -> (a -> a) -> a -> v a) = (\n _ _ -> n < 1000) ===> V.iterateN `eq` (\n f -> take n . iterate f) @@ -335,7 +335,7 @@ V.scanl1 `eq` scanl1 prop_scanl1' :: P ((a -> a -> a) -> v a -> v a) = notNull2 ===> V.scanl1' `eq` scanl1 - + prop_prescanr :: P ((a -> a -> a) -> a -> v a -> v a) = V.prescanr `eq` prescanr prop_prescanr' :: P ((a -> a -> a) -> a -> v a -> v a) @@ -373,7 +373,7 @@ --prop_mapAccumL = eq3 -- (V.mapAccumL :: (X -> W -> (X,W)) -> X -> B -> (X, B)) -- ( mapAccumL :: (X -> W -> (X,W)) -> X -> [W] -> (X, [W])) - -- + -- --prop_mapAccumR = eq3 -- (V.mapAccumR :: (X -> W -> (X,W)) -> X -> B -> (X, B)) -- ( mapAccumR :: (X -> W -> (X,W)) -> X -> [W] -> (X, [W])) @@ -507,7 +507,7 @@ where -- Prelude --prop_concat = (V.concat :: [v a] -> v a) `eq1` concat - + -- Data.List --prop_transpose = V.transpose `eq1` (transpose :: [v a] -> [v a]) --prop_group = V.group `eq1` (group :: v a -> [v a]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/tests/vector-tests.cabal new/vector-0.10.12.3/tests/vector-tests.cabal --- old/vector-0.10.9.1/tests/vector-tests.cabal 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/tests/vector-tests.cabal 1970-01-01 01:00:00.000000000 +0100 @@ -1,57 +0,0 @@ -Name: vector-tests -Version: 0.10.0.1 -License: BSD3 -License-File: LICENSE -Author: Max Bolingbroke, Roman Leshchinskiy -Maintainer: Roman Leshchinskiy <[email protected]> -Copyright: (c) Max Bolinbroke, Roman Leshchinskiy 2008-2012 -Homepage: http://darcs.haskell.org/vector -Category: Data Structures -Synopsis: Efficient Arrays -Description: - Tests for the vector package - -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.9.1, - random, - QuickCheck >= 2, test-framework, test-framework-quickcheck2 - - Extensions: CPP, - ScopedTypeVariables, - PatternGuards, - MultiParamTypeClasses, - FlexibleContexts, - Rank2Types, - TypeSynonymInstances, - TypeFamilies, - TemplateHaskell - - Ghc-Options: -O0 - Ghc-Options: -Wall -fno-warn-orphans -fno-warn-missing-signatures - -Executable "vector-tests-O2" - Main-Is: Main.hs - - Build-Depends: base >= 4 && < 5, template-haskell, vector == 0.10.9.1, - random, - QuickCheck >= 2, test-framework, test-framework-quickcheck2 - - Extensions: CPP, - ScopedTypeVariables, - PatternGuards, - MultiParamTypeClasses, - FlexibleContexts, - Rank2Types, - TypeSynonymInstances, - TypeFamilies, - TemplateHaskell - - Ghc-Options: -O2 - Ghc-Options: -Wall -fno-warn-orphans -fno-warn-missing-signatures - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vector-0.10.9.1/vector.cabal new/vector-0.10.12.3/vector.cabal --- old/vector-0.10.9.1/vector.cabal 2013-09-26 05:59:56.000000000 +0200 +++ new/vector-0.10.12.3/vector.cabal 2015-03-28 02:35:24.000000000 +0100 @@ -1,9 +1,10 @@ Name: vector -Version: 0.10.9.1 +Version: 0.10.12.3 +-- don't forget to update the changelog file! License: BSD3 License-File: LICENSE Author: Roman Leshchinskiy <[email protected]> -Maintainer: Roman Leshchinskiy <[email protected]> +Maintainer: [email protected] Copyright: (c) Roman Leshchinskiy 2008-2012 Homepage: https://github.com/haskell/vector Bug-Reports: https://github.com/haskell/vector/issues @@ -32,26 +33,12 @@ There is also a (draft) tutorial on common uses of vector. . * <http://haskell.org/haskellwiki/Numeric_Haskell:_A_Vector_Tutorial> - . - Changes in version 0.10.0.1 - . - * Require @primitive@ to include workaround for a GHC array copying bug - . - Changes in version 0.10 - . - * @NFData@ instances - . - * More efficient block fills - . - * Safe Haskell support removed - . -Cabal-Version: >= 1.6 +Cabal-Version: >= 1.10 Build-Type: Simple Extra-Source-Files: README.md - tests/vector-tests.cabal tests/LICENSE tests/Setup.hs tests/Main.hs @@ -75,26 +62,31 @@ benchmarks/TestData/Graph.hs benchmarks/TestData/ParenTree.hs benchmarks/TestData/Random.hs + changelog internal/GenUnboxTuple.hs internal/unbox-tuple-instances Flag BoundsChecks Description: Enable bounds checking Default: True + Manual: True Flag UnsafeChecks Description: Enable bounds checking in unsafe operations at the cost of a significant performance penalty Default: False + Manual: True Flag InternalChecks Description: Enable internal consistency checks at the cost of a significant performance penalty Default: False + Manual: True Library - Extensions: CPP, DeriveDataTypeable + Default-Language: Haskell2010 + Default-Extensions: CPP, DeriveDataTypeable Exposed-Modules: Data.Vector.Internal.Check @@ -129,13 +121,13 @@ vector.h Build-Depends: base >= 4 && < 5 - , primitive >= 0.5.0.1 && < 0.6 + , primitive >= 0.5.0.1 && < 0.7 , ghc-prim - , deepseq >= 1.1 && < 1.4 + , deepseq >= 1.1 && < 1.5 if impl(ghc<6.13) Ghc-Options: -finline-if-enough-args -fno-method-sharing - + Ghc-Options: -O2 if flag(BoundsChecks) @@ -149,4 +141,46 @@ source-repository head type: git - location: https://github.com/haskell/vector + location: https://github.com/haskell/vector.git + +test-suite vector-tests-O0 + Default-Language: Haskell2010 + type: exitcode-stdio-1.0 + Main-Is: Main.hs + hs-source-dirs: tests + Build-Depends: base >= 4 && < 5, template-haskell, vector, + random, + QuickCheck >= 2.7 && < 2.8 , test-framework, test-framework-quickcheck2, + transformers >= 0.2.0.0 + default-extensions: CPP, + ScopedTypeVariables, + PatternGuards, + MultiParamTypeClasses, + FlexibleContexts, + Rank2Types, + TypeSynonymInstances, + TypeFamilies, + TemplateHaskell + Ghc-Options: -O0 + Ghc-Options: -Wall -fno-warn-orphans -fno-warn-missing-signatures + +test-suite vector-tests-O2 + Default-Language: Haskell2010 + type: exitcode-stdio-1.0 + Main-Is: Main.hs + hs-source-dirs: tests + Build-Depends: base >= 4 && < 5, template-haskell, vector, + random, + QuickCheck >= 2.7, test-framework, test-framework-quickcheck2, + transformers >= 0.2.0.0 + default-extensions: CPP, + ScopedTypeVariables, + PatternGuards, + MultiParamTypeClasses, + FlexibleContexts, + Rank2Types, + TypeSynonymInstances, + TypeFamilies, + TemplateHaskell + Ghc-Options: -O2 + Ghc-Options: -Wall -fno-warn-orphans -fno-warn-missing-signatures
