projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a382bb
)
add INLINE toList
author
Ross Paterson
<ross@soi.city.ac.uk>
Thu, 6 Aug 2009 14:28:53 +0000
(14:28 +0000)
committer
Ross Paterson
<ross@soi.city.ac.uk>
Thu, 6 Aug 2009 14:28:53 +0000
(14:28 +0000)
In anticipation of the fixing of #2353.
Data/Foldable.hs
patch
|
blob
|
history
diff --git
a/Data/Foldable.hs
b/Data/Foldable.hs
index
cb573c4
..
df6e52a
100644
(file)
--- a/
Data/Foldable.hs
+++ b/
Data/Foldable.hs
@@
-226,6
+226,7
@@
msum = foldr mplus mzero
-- | List of elements of a structure.
toList :: Foldable t => t a -> [a]
+{-# INLINE toList #-}
#ifdef __GLASGOW_HASKELL__
toList t = build (\ c n -> foldr c n t)
#else