projects
/
haskell-directory.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disambiguate uses of foldr for nhc98 to compile without errors
[haskell-directory.git]
/
Data
/
Traversable.hs
diff --git
a/Data/Traversable.hs
b/Data/Traversable.hs
index
1c7d83b
..
6754094
100644
(file)
--- a/
Data/Traversable.hs
+++ b/
Data/Traversable.hs
@@
-27,10
+27,10
@@
module Data.Traversable (
foldMapDefault,
) where
foldMapDefault,
) where
-import Prelude hiding (mapM, sequence)
-import qualified Prelude (mapM)
+import Prelude hiding (mapM, sequence, foldr)
+import qualified Prelude (mapM, foldr)
import Control.Applicative
import Control.Applicative
-import Data.Foldable (Foldable)
+import Data.Foldable (Foldable())
import Data.Monoid (Monoid)
import Data.Array
import Data.Monoid (Monoid)
import Data.Array
@@
-90,7
+90,7
@@
instance Traversable Maybe where
traverse f (Just x) = Just <$> f x
instance Traversable [] where
traverse f (Just x) = Just <$> f x
instance Traversable [] where
- traverse f = foldr cons_f (pure [])
+ traverse f = Prelude.foldr cons_f (pure [])
where cons_f x ys = (:) <$> f x <*> ys
mapM = Prelude.mapM
where cons_f x ys = (:) <$> f x <*> ys
mapM = Prelude.mapM