Suppose I have a module that re-exports a value from an internal module:
module My.Cool.Module (SomeType, someValue) where
import My.Cool.Module.Internal (SomeType, someValue)
I would like to show various documentation for SomeType
both someValue
in My-Cool-Module.html
and My-Cool-Module-Internal.html
, so the former can discuss the public API, and the latter can discuss how they relate to the rest of the internal elements.
Is there any way to do this with haddock?
I tried:
module My.Cool.Module (SomeType, someValue) where
import My.Cool.Module.Internal
( SomeType -- ^ a serious type for serious people
, someValue -- ^ a serious value for serious people
)
But haddock gave me a parse error:
parse error on input β-- ^ a serious type for serious peopleβ
source
share