[Haskell-cafe] Monospace code in Haddock

Niklas Hambüchen mail at nh2.me
Wed Sep 5 21:40:37 CEST 2012


Is it possible to use inlined monospaced font in Haddock that does *not*
replace < and > to links and does *not* link to Haskell functions (like
@ and ' and " and ` do)?

Like:

-- | This function gives you @<span a1="v1">str</span>@
something :: String


The @ above of course makes everything unreadable (as it thinks span...
is a link).

The only thing I've found to work so far is:


-- | This function gives you
--
-- >@<span a1="v1">str</span>@
something :: String


Which is not inline.



More information about the Haskell-Cafe mailing list