<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a module A that re-exports module B, and module B contains only class<br>
instances. Since I&#39;m using -Wall, I get this warning about module B<br>
exporting nothing. Is there a way to disable this particular warning, since<br>
it is unnecessary in this case? No mailing list messages or GHC<br>
documentation has told me what to do.<br>
</blockquote>
<br></div></div>
Well, the warning is right that you don&#39;t need to re-export module B: instances are implicitly exported. &nbsp;So you could just remove the export of &quot;module B&quot;, unless there&#39;s a reason to export it (such as, you might add some exported functions or data types to it later)</blockquote>
<div><br>Hmm, the disappointing result of removing module B from the export list is that now it doesn&#39;t show up in the Haddock-generated documentation for module A. Not that there was anything specific in B to document, because it&#39;s only instances. But I do want the user to know that importing A also imports B. Sigh... I suppose there&#39;s CPP if I really want it.<br>
<br>Sean<br></div></div></div>