add INLINE toList
authorRoss Paterson <ross@soi.city.ac.uk>
Thu, 6 Aug 2009 14:28:53 +0000 (14:28 +0000)
committerRoss 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

index cb573c4..df6e52a 100644 (file)
@@ -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