An idea for a warning

Sven Panne sven.panne at aedion.de
Tue Apr 3 06:22:27 EDT 2007


I've just once again fixed a situation in the library which looked as follows:

   module Foo(Bar(..)) where
   data Bar = Baz Blah
   type Blah = String

Although Bar is usable, I very much doubt that it is intended that Blah is not 
exported from Foo. Haddock complains about such situations, BTW. Would it 
make sense to add a warning to GHC in such cases?

Cheers,
   S.



More information about the Cvs-ghc mailing list