Haddock to HTML Converter - Haskell Documentation Tool
Convert Haddock markup to HTML with type signatures, code examples, and Haskell syntax. Perfect for Hackage docs, functional programming APIs.
Note: First conversion initializes Pandoc WebAssembly (~55MB). Subsequent conversions are instant.
Drop Haddock file here or click to browse
Accepts .hs, .lhs, .txt filesEnter Haddock markup to see preview
Common Haddock Syntax
| Haddock Syntax | Description | HTML Result |
|---|---|---|
-- | Documentation |
Function documentation | Block documentation above declaration |
{-| Multi-line doc -} |
Multi-line documentation | Block documentation with multiple paragraphs |
/emphasis/ |
Italic text | emphasis |
__bold__ |
Bold text | bold |
@code@ |
Inline code | code |
'identifier' |
Link to identifier | <a>identifier</a> |
"Module.Name" |
Link to module | <a>Module.Name</a> |
>>> example |
Code example with output | <pre>example</pre> |
> code block |
Bird-track code block | <pre><code>code block</code></pre> |
<url> |
Hyperlink | <a href="url">url</a> |
* List item |
Unordered list | <ul><li>item</li></ul> |
(1) Numbered item |
Ordered list | <ol><li>item</li></ol> |
Copied to clipboard