projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
doc wibble
[ghc-base.git]
/
Data
/
Traversable.hs
diff --git
a/Data/Traversable.hs
b/Data/Traversable.hs
index
0df8bd4
..
28fa761
100644
(file)
--- a/
Data/Traversable.hs
+++ b/
Data/Traversable.hs
@@
-107,6
+107,7
@@
instance Traversable Maybe where
traverse f (Just x) = Just <$> f x
instance Traversable [] where
+ {-# INLINE traverse #-} -- so that traverse can fuse
traverse f = Prelude.foldr cons_f (pure [])
where cons_f x ys = (:) <$> f x <*> ys