14 Aug 19:23
How to disable warning for "export item 'module ...' exports nothing"?
From: Sean Leather <leather <at> cs.uu.nl>
Subject: How to disable warning for "export item 'module ...' exports nothing"?
Newsgroups: gmane.comp.lang.haskell.glasgow.user
Date: 2008-08-14 17:27:08 GMT
Subject: How to disable warning for "export item 'module ...' exports nothing"?
Newsgroups: gmane.comp.lang.haskell.glasgow.user
Date: 2008-08-14 17:27:08 GMT
Hi,
I have a module A that re-exports module B, and module B contains only class instances. Since I'm using -Wall, I get this warning about module B exporting nothing. Is there a way to disable this particular warning, since it is unnecessary in this case? No mailing list messages or GHC documentation has told me what to do.
Thanks,
Sean
I have a module A that re-exports module B, and module B contains only class instances. Since I'm using -Wall, I get this warning about module B exporting nothing. Is there a way to disable this particular warning, since it is unnecessary in this case? No mailing list messages or GHC documentation has told me what to do.
Thanks,
Sean
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users <at> haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
It's an interesting use-case though. I wonder if Haddock
should automatically provide links to all instances exported
from the module that are either (1) instances for datatypes
or classes exported by the module, or (2) orphan (i.e. not
defined in the same module as either the class or the
datatype). (It would be too tedious to list *all* exported
instances, but luckily it's not necessary for completeness.)
-Isaac
RSS Feed