Skip to content

Commit

Permalink
Use any/all from Foldable
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Sep 4, 2017
1 parent da2e857 commit fd0569e
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 fd0569e

Please sign in to comment.