Skip to content

Commit

Permalink
Merge pull request #4740 from phadej/foldable-all-any
Browse files Browse the repository at this point in the history
Use any/all from Foldable
  • Loading branch information
phadej authored Sep 4, 2017
2 parents da2e857 + fd0569e commit 6083225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cabal/Distribution/Compat/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ module Distribution.Compat.Prelude (
null, length,
find, foldl',
traverse_, for_,
any, all,

-- * Data.Traversable
Traversable, traverse, sequenceA,
Expand Down Expand Up @@ -94,7 +95,7 @@ module Distribution.Compat.Prelude (

-- We also could hide few partial function
import Prelude as BasePrelude hiding
( IO, mapM, mapM_, sequence, null, length, foldr
( IO, mapM, mapM_, sequence, null, length, foldr, any, all
#if MINVER_base_48
, Word
-- We hide them, as we import only some members
Expand All @@ -110,7 +111,7 @@ import Distribution.Compat.Semigroup (Monoid (..))
import Data.Foldable (length, null)
#endif

import Data.Foldable (Foldable (foldMap, foldr), find, foldl', for_, traverse_)
import Data.Foldable (Foldable (foldMap, foldr), find, foldl', for_, traverse_, any, all)
import Data.Traversable (Traversable (traverse, sequenceA), for)

import Control.Applicative (Alternative (..))
Expand Down

0 comments on commit 6083225

Please sign in to comment.