Scrod

A fast Haskell documentation generator that parses modules without type checking

Image 1 of 1: The scrod.fyi playground: a Haskell queue module on the left, its generated documentation on the right

A documentation generator for Haskell modules, like Haddock: it reads a module on stdin and writes JSON or HTML, handles Literate Haskell, Backpack signatures and CPP, and ships as native binaries, a WASM build behind the playground at scrod.fyi, a WASI build and a VS Code preview extension.

Trade-offs

  • It only parses the module, with no renaming or type checking: fast, but without the cross-references and inferred types a full Haddock run gives.
  • GHC and the Haddock library do the parsing, so it follows the real grammar instead of reimplementing it.

Q&A2

The same code compiled to WebAssembly: scrod.fyi renders documentation as source is typed, pasted, fetched from a URL or dropped in.

Reviews

Loading reviews

    More in Haskell

    See all 4 →
    • arbiterPostgreSQL job queue for Haskell, with no broker and no leader
    • VoLCAA Life Cycle Assessment engine in Haskell: LCA databases as queryable answers
    • FuNesA NES emulator in Haskell, built to test functional style on a virtual machine
    • hideA Haskell IDE in Haskell, in a terminal, a native window or a browser

    More in Developer tools

    See all 88 →
    • EpuppBrowser extension that opens a live ClojureScript REPL into any web page
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
    • PandaWardLocal application security assessment that reports what it couldn't decide
    • ScalexScala code navigation for coding agents, from source and without a build
    • polyOne Rust binary that lints and formats about 30 languages

    More in Claude Code

    See all 421 →
    • jobdGPU-aware job broker for a few personal machines, with an MCP server
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • RaspiMIDIHubRaspberry Pi as a plug-and-play USB MIDI hub with virtual instruments
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • TellyscopeAndroid TV debloater and remote that runs from a phone over ADB