{-# LANGUAGE
- DeriveDataTypeable
+ CPP
+ , DeriveDataTypeable
, DoAndIfThenElse
, GeneralizedNewtypeDeriving
, OverloadedStrings
-- |Convert MIME parameter values to an 'AsciiBuilder'.
printMIMEParams ∷ MIMEParams → AsciiBuilder
{-# INLINEABLE printMIMEParams #-}
+#if MIN_VERSION_containers(0, 4, 1)
+printMIMEParams (MIMEParams m) = M.foldlWithKey' f (∅) m
+#else
printMIMEParams (MIMEParams m) = M.foldlWithKey f (∅) m
- -- THINKME: Use foldlWithKey' for newer Data.Map
+#endif
where
f ∷ AsciiBuilder → CIAscii → Text → AsciiBuilder
{-# INLINE f #-}