<div dir="ltr"><div><div><div><div><br></div>I'm trying out the ghc 7.10 RC and am seeing lots of warnings about Monoid and some symbols from Control.Applicative - e.g.<br><br>    The import of ‘Data.Monoid’ is redundant<br>      except perhaps to import instances from ‘Data.Monoid’<br>    To import instances alone, use: import Data.Monoid()<br><br></div>For now I'm wrapping the import with some CPP so that it will still compile with older ghc versions (and a probably-pointless attempt to be non-ghc-specific, since I have never tested my code with other compilers):<br><br>#if (!defined(__GLASGOW_HASKELL__)) || (__GLASGOW_HASKELL__ < 710)<br>import Control.Applicative (Applicative(pure), (<$>), (<*>))<br>import Data.Monoid (Monoid(..))<br>#else<br>import Control.Applicative ((<$>))<br>#endif<br><br></div>Is this the best way? Am I missing something really obvious?<br><br></div><div>Thanks,<br></div>Doug<br><br></div>