From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- .../files/vector-algorithms-0.5.4.1-ghc-7.4.patch | 21 +++++++++++ .../vector-algorithms-0.7.0.1-ghc-8.0.2_rc1.patch | 44 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 dev-haskell/vector-algorithms/files/vector-algorithms-0.5.4.1-ghc-7.4.patch create mode 100644 dev-haskell/vector-algorithms/files/vector-algorithms-0.7.0.1-ghc-8.0.2_rc1.patch (limited to 'dev-haskell/vector-algorithms/files') diff --git a/dev-haskell/vector-algorithms/files/vector-algorithms-0.5.4.1-ghc-7.4.patch b/dev-haskell/vector-algorithms/files/vector-algorithms-0.5.4.1-ghc-7.4.patch new file mode 100644 index 000000000000..edabcf2e8b54 --- /dev/null +++ b/dev-haskell/vector-algorithms/files/vector-algorithms-0.5.4.1-ghc-7.4.patch @@ -0,0 +1,21 @@ +--- vector-algorithms-0.5.4.1-orig/vector-algorithms.cabal 2012-08-16 06:39:54.000000000 +1000 ++++ vector-algorithms-0.5.4.1/vector-algorithms.cabal 2012-08-17 17:05:37.875993915 +1000 +@@ -52,9 +52,15 @@ + FlexibleContexts, + CPP + +- GHC-Options: +- -Odph +- -funbox-strict-fields ++ if impl(ghc >= 7.4.0) ++ GHC-Options: ++ -Odph ++ -funbox-strict-fields ++ -fsimpl-tick-factor=153 ++ else ++ GHC-Options: ++ -Odph ++ -funbox-strict-fields + + Include-Dirs: + include diff --git a/dev-haskell/vector-algorithms/files/vector-algorithms-0.7.0.1-ghc-8.0.2_rc1.patch b/dev-haskell/vector-algorithms/files/vector-algorithms-0.7.0.1-ghc-8.0.2_rc1.patch new file mode 100644 index 000000000000..3616dd76d82c --- /dev/null +++ b/dev-haskell/vector-algorithms/files/vector-algorithms-0.7.0.1-ghc-8.0.2_rc1.patch @@ -0,0 +1,44 @@ +diff --git a/tests/properties/Tests.hs b/tests/properties/Tests.hs +index a0b7d35..8fcfd36 100644 +--- a/tests/properties/Tests.hs ++++ b/tests/properties/Tests.hs +@@ -1,2 +1,2 @@ +-{-# LANGUAGE ImpredicativeTypes, RankNTypes, TypeOperators, FlexibleContexts #-} ++{-# LANGUAGE ImpredicativeTypes, RankNTypes, TypeOperators, FlexibleContexts, ScopedTypeVariables #-} + +@@ -44,4 +44,4 @@ args = stdArgs + +-check_Int_sort = forM_ algos $ \(name,algo) -> +- quickCheckWith args (label name . prop_fullsort algo) ++check_Int_sort = forM_ algos (\(name,algo :: Algo Int ()) -> ++ quickCheckWith args (label name . prop_fullsort algo)) + where +@@ -55,4 +55,4 @@ check_Int_sort = forM_ algos $ \(name,algo) -> + +-check_Int_partialsort = forM_ algos $ \(name,algo) -> +- quickCheckWith args (label name . prop_partialsort algo) ++check_Int_partialsort = forM_ algos (\(name,algo :: SizeAlgo Int ()) -> ++ quickCheckWith args (label name . prop_partialsort algo)) + where +@@ -63,4 +63,4 @@ check_Int_partialsort = forM_ algos $ \(name,algo) -> + +-check_Int_select = forM_ algos $ \(name,algo) -> +- quickCheckWith args (label name . prop_select algo) ++check_Int_select = forM_ algos (\(name,algo :: SizeAlgo Int ()) -> ++ quickCheckWith args (label name . prop_select algo)) + where +@@ -119,10 +119,10 @@ check_permutation = do + qc $ label "introsort" . prop_permutation (INT.sort :: Algo Int ()) +- qc $ label "intropartial" . prop_sized (const . prop_permutation) ++ qc $ label "intropartial" . prop_sized (\x -> const (prop_permutation x)) + (INT.partialSort :: SizeAlgo Int ()) +- qc $ label "introselect" . prop_sized (const . prop_permutation) ++ qc $ label "introselect" . prop_sized (\x -> const (prop_permutation x)) + (INT.select :: SizeAlgo Int ()) + qc $ label "heapsort" . prop_permutation (H.sort :: Algo Int ()) +- qc $ label "heappartial" . prop_sized (const . prop_permutation) ++ qc $ label "heappartial" . prop_sized (\x -> const (prop_permutation x)) + (H.partialSort :: SizeAlgo Int ()) +- qc $ label "heapselect" . prop_sized (const . prop_permutation) ++ qc $ label "heapselect" . prop_sized (\x -> const (prop_permutation x)) + (H.select :: SizeAlgo Int ()) -- cgit v1.2.3