[commit: packages/containers] develop-0.6, develop-0.6-questionable, master, zip-devel: Use defensive `Data.Foldable` import (74f9b89)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:40:25 UTC 2015


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

On branches: develop-0.6,develop-0.6-questionable,master,zip-devel
Link       : http://git.haskell.org/packages/containers.git/commitdiff/74f9b89a542240e7ab510ee4fb73a4d46035b8ea

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

commit 74f9b89a542240e7ab510ee4fb73a4d46035b8ea
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Sep 27 15:12:33 2014 +0200

    Use defensive `Data.Foldable` import
    
    With this `import`-style containers will compile warning free
    with existing GHC versions as well as GHC HEAD (in its current form)
    
    This change is also needed because `Data.Foldable` is planned to export
    `null` and `length` which will otherwise clash with `Data.Sequence`


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

74f9b89a542240e7ab510ee4fb73a4d46035b8ea
 Data/Sequence.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Data/Sequence.hs b/Data/Sequence.hs
index 9bfd6f9..6bbebdb 100644
--- a/Data/Sequence.hs
+++ b/Data/Sequence.hs
@@ -149,7 +149,7 @@ import Control.DeepSeq (NFData(rnf))
 import Control.Monad (MonadPlus(..), ap)
 import Data.Monoid (Monoid(..))
 import Data.Functor (Functor(..))
-import Data.Foldable
+import Data.Foldable (Foldable(foldl, foldl1, foldr, foldr1), foldl', toList)
 import Data.Traversable
 import Data.Typeable
 



More information about the ghc-commits mailing list