) where
IMPORT_DELOOPER(SpecLoop)
+#if defined(USE_FAST_STRINGS)
+import FastString
+#endif
import Maybes
-import Bag ( Bag, foldBag )
+import Bag ( Bag, foldrBag )
import Outputable ( Outputable(..) )
import PprStyle ( PprStyle )
import Pretty ( SYN_IE(Pretty), PrettyRep )
listToFM = addListToFM emptyFM
#ifdef COMPILING_GHC
-bagToFM = foldBag plusFM (\ (k,v) -> unitFM k v) emptyFM
+bagToFM = foldrBag (\(k,v) fm -> addToFM fm k v) emptyFM
#endif
\end{code}