Hello, I have a module with a public class plus some instances for public data types. In addition, I use this class inside another module where I declare local (module private) data types and make them instances of the class. I had expected that haddock (I am using 0.7) will list in the documentation only instances of data types that are exported, but instead all instances are listed. Is there a way to persuade haddock to list only instances of data types that are actually visible to the user? Ben
Am Montag, 10. Oktober 2005 13:44 schrieb Benjamin Franksen:
[...]
Is there a way to persuade haddock to list only instances of data types that are actually visible to the user?
I experienced the same problem and worked around it by enclosing the instance declarations for private data types with #ifndef __HADDOCK__ and #endif.
Ben
Best wishes, Wolfgang
On Monday 10 October 2005 15:17, Wolfgang Jeltsch wrote:
Am Montag, 10. Oktober 2005 13:44 schrieb Benjamin Franksen:
[...]
Is there a way to persuade haddock to list only instances of data types that are actually visible to the user?
I experienced the same problem and worked around it by enclosing the instance declarations for private data types with #ifndef __HADDOCK__ and #endif.
That seems like a good work-around, for the moment. Thanks for the suggestion. Ben
participants (2)
-
Benjamin Franksen -
Wolfgang Jeltsch