Consider the following module
{-
The FirstClassModule
module is supposed to provide a Bar
record type, which is a bit like a first class module. The Example
module then instantiates the module and uses the RecordWildCards extension to bring the names to the scope and make them exported.
When you run Haddock (version 2.8) on this module, it will interfere with the type signatures for the foo
functions and include them in the API documentation. Now, my question is:
Is there a way to document the resulting names foo
, fuh
, etc., without writing their type signatures in the Example
module?
I do not want to write type signatures, because in this case they are templates. If I have to write them, this module loses its meaning.
source share