haddock-hyperlink-test

Safe HaskellSafe
LanguageHaskell2010

Demo

Description

Each row below shows an import, a reference to the entity exported by the imported module, the link that Haddock generates for that reference, and the module that this link is expected to target.

Import Reference Link Expected Target Module
import Demo.ModuleA (foo) 'foo' foo Demo.ModuleA
import qualified Demo.ModuleB 'Demo.ModuleB.bar' bar Demo.ModuleB
import qualified Demo.ModuleC as C 'C.baz' baz Demo.ModuleC
(none) 'Demo.ModuleD.qux' qux Demo.ModuleD
import Demo.ModuleE (quux) 'quux' quux Demo.ModuleE
import qualified Demo.ModuleF 'Demo.ModuleF.quux' quux Demo.ModuleF

The last two rows refer to different entities that share the same name.

Synopsis

Documentation

examples :: [Int] #

Uses each import, so that none of them are redundant.