haddock-hyperlink-test
Safe HaskellSafe-Inferred
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.

ImportReferenceLinkExpected Target Module
import Demo.ModuleA (foo)'foo'fooDemo.ModuleA
import qualified Demo.ModuleB'Demo.ModuleB.bar'barDemo.ModuleB
import qualified Demo.ModuleC as C'C.baz'bazDemo.ModuleC
(none)'Demo.ModuleD.qux'quxDemo.ModuleD
import Demo.ModuleE (quux)'quux'quuxDemo.ModuleE
import qualified Demo.ModuleF'Demo.ModuleF.quux'quuxDemo.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.