[commit: packages/containers] master: Import only used class methods of Foldable. (6b026a7)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:41:44 UTC 2015


Repository : ssh://git@git.haskell.org/containers

On branch  : master
Link       : http://git.haskell.org/packages/containers.git/commitdiff/6b026a7a730569d21b27ad2a8c18961cd8662a35

>---------------------------------------------------------------

commit 6b026a7a730569d21b27ad2a8c18961cd8662a35
Author: Milan Straka <fox at ucw.cz>
Date:   Tue Dec 16 14:12:37 2014 +0100

    Import only used class methods of Foldable.
    
    On GHC 7.8, the Foldable class contains also null and length, which
    conflicts with Data.Sequence{null,length}.


>---------------------------------------------------------------

6b026a7a730569d21b27ad2a8c18961cd8662a35
 tests/seq-properties.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/seq-properties.hs b/tests/seq-properties.hs
index a64e66d..4cf0876 100644
--- a/tests/seq-properties.hs
+++ b/tests/seq-properties.hs
@@ -3,7 +3,7 @@ import Data.Sequence    -- needs to be compiled with -DTESTING for use here
 import Control.Applicative (Applicative(..))
 import Control.Arrow ((***))
 import Data.Array (listArray)
-import Data.Foldable (Foldable(..), toList, all, sum)
+import Data.Foldable (Foldable(foldl, foldl1, foldr, foldr1), toList, all, sum)
 import Data.Functor ((<$>), (<$))
 import Data.Maybe
 import Data.Monoid (Monoid(..))



More information about the ghc-commits mailing list