# Announcing Scrod, like Haddock but faster

**URL:** <https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761>\
**Category:** Announcements\
**Created:** [March 5, 2026, 3:35pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761 "2026-03-05T15:35:00Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 5, 2026, 3:35pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/1 "2026-03-05T15:35:00Z")

</div>

> **[Announcing Scrod, like Haddock but faster](https://taylor.fausak.me/2026/03/05/scrod/)**
>
> Homer: There’s three ways to do things: The right way, the wrong way, and the Max Power way. Bart: Isn’t that the wrong way? Homer: Yeah, but faster! I’m happy to announce Scrod, a tool for quickly...

Direct link to web app playground: [https://scrod.fyi](https://scrod.fyi)

Direct link to release with binaries and other assets: [Release 1.0.0.0 · tfausak/scrod · GitHub](https://github.com/tfausak/scrod/releases/tag/1.0.0.0)

---

<div class="post-metadata">

**Author:** ![facundominguez](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/facundominguez/32/3486_2.png) [@facundominguez](https://discourse.haskell.org/u/facundominguez)\
**Post date:** [March 5, 2026, 4:06pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/2 "2026-03-05T16:06:40Z")

</div>

👋 Trading off speed for accuracy is an interesting idea. I suppose worse implies:

- no name resolution and therefore no automatically generated hyperlinks,
- no type checking and therefore no type inference when function type signatures are missing.

Is this an accurate assessment?

---

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 5, 2026, 4:13pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/3 "2026-03-05T16:13:25Z")

</div>

Yup, that’s exactly right!

For name resolution, Scrod has enough information to _guess_, but it can’t tell for certain. So it doesn’t even try. But in theory something consuming Scrod’s output could try to do ad hoc name resolution using the list of imported modules.

Another consequence of no type checking is that the module may not even compile! This is actually really useful with the VSCode extension, because you can preview documentation while you’re editing a module (as long as there are no parse errors, of course).

---

<div class="post-metadata">

**Author:** ![Jappie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jappie/32/5394_2.png) [@Jappie](https://discourse.haskell.org/u/Jappie)\
**Post date:** [March 5, 2026, 6:08pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/4 "2026-03-05T18:08:04Z")

</div>

This is good!  
We should move haddock out of GHC tree so we can have alternatives likes these.

---

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 5, 2026, 6:24pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/5 "2026-03-05T18:24:20Z")

</div>

Didn’t Haddock recently move into GHC?

At any rate, Scrod only depends on [haddock-library](https://hackage.haskell.org/package/haddock-library-1.11.0). I didn’t feel like it being part of GHC was an issue.

---

<div class="post-metadata">

**Author:** ![Jappie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jappie/32/5394_2.png) [@Jappie](https://discourse.haskell.org/u/Jappie)\
**Post date:** [March 5, 2026, 7:10pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/6 "2026-03-05T19:10:24Z")

</div>

well, it was a while ago haha. Hope I can do some work on haddock at zurich hack

---

<div class="post-metadata">

**Author:** ![feature-not-a-bug](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/feature-not-a-bug/32/2738_2.png) [@feature-not-a-bug](https://discourse.haskell.org/u/feature-not-a-bug)\
**Post date:** [March 5, 2026, 7:16pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/7 "2026-03-05T19:16:55Z")

</div>

This is very cool. Haddock currently has an open issue which makes it incompatible with Liquid Haskell. [Make verification succeed with haddock enabled · Issue #2188 · ucsd-progsys/liquidhaskell](https://github.com/ucsd-progsys/liquidhaskell/issues/2188)

Does it happen to work with LH if I drop haddock comments?

---

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 5, 2026, 7:45pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/8 "2026-03-05T19:45:16Z")

</div>

Ah, I didn’t think to test with Liquid Haskell. Without actually trying, it _should_ work. Scrod doesn’t run plugins at all. The GHC options for enabling them are simply ignored. And my understanding is that LH annotations are comments like `{-@ … @-}`, which would also be ignored.

Here’s an example showing that the LH plugin and annotations are ignored: [Scrod](https://scrod.fyi/#input=ey0jIG9wdGlvbnNfZ2hjIC1mcGx1Z2luPUxpcXVpZEhhc2tlbGwgIy19Cgp7LUAgdHlwZSBQb3MgPSB7djpJbnQgfCAwIDwgdn0gQC19Cgp7LUAgaW5jciA6OiBQb3MgLT4gUG9zIEAtfQppbmNyIDo6IEludCAtPiBJbnQKaW5jciB4ID0geCAtIDE%3D)

---

<div class="post-metadata">

**Author:** ![ApothecaLabs](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/apothecalabs/32/3215_2.png) [@ApothecaLabs](https://discourse.haskell.org/u/ApothecaLabs)\
**Post date:** [March 6, 2026, 5:12pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/9 "2026-03-06T17:12:53Z")

</div>

I have been using Scrod to help document some of my recent work - the immediate visual feedback is incredibly helpful and completely removes the pain of having to 1) rebuild docs 2) relaunch the server 3) reload the web page just to see your changes. 🥰

if I could offer some positive feedback? Improve support for the module descriptor - if I do this:

```haskell
{-|
Module : TheModule
Description : Synopsis
Copyright : (c) 2026 Some Person
License : BSD-3
Maintainer : me@my.com
Stability : experimental
Portability : POSIX

Full description
-}

```

It just sort of mashes all of the attributes on a single line, and it seems to render it like regular documentation text instead of recognizing the first stanza as potentially being the module stanza.

---

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 6, 2026, 5:50pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/10 "2026-03-06T17:50:14Z")

</div>

Sure, I’ll add that. Issue here: [Support module description fields · Issue #357 · tfausak/scrod · GitHub](https://github.com/tfausak/scrod/issues/357)

I’ve never really understood the point of those module headers though. `Module` is redundant, it’s just the module name. `Description` is also redundant, it’s just the module documentation. `Copyright`, `License`, and `Maintainer` duplicate the same fields in the package description (Cabal file). `Stability` has been hilariously useless everywhere I’ve seen it, like [`Control.Monad`](https://hackage-content.haskell.org/package/base-4.22.0.0/docs/Control-Monad.html) saying it’s “provisional”. And same for `Portability`; somehow [`Control.Exception`](https://hackage-content.haskell.org/package/base-4.22.0.0/docs/Control-Exception.html) is “non-portable”?

Also syntactically it’s annoying. Why use a custom syntax just for these fields, when there’s a perfectly good definition list syntax: `[term]: definition`?

Anyway, rant aside this should be relatively simple to implement.

---

<div class="post-metadata">

**Author:** ![ApothecaLabs](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/apothecalabs/32/3215_2.png) [@ApothecaLabs](https://discourse.haskell.org/u/ApothecaLabs)\
**Post date:** [March 6, 2026, 5:53pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/11 "2026-03-06T17:53:45Z")

</div>

> [@taylorfausak](#):
>
> I’ve never really understood the point of those module headers though.

Heh perhaps I never realized how useless they are before, because I have not done enough Haddock documentation, because I have not had an ergonomic tool to use…

---

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 6, 2026, 8:18pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/12 "2026-03-06T20:18:26Z")

</div>

Works now 🙂 [Scrod](https://scrod.fyi/#input=ey18bW9kdWxlOmEKZGVzY3JpcHRpb246Ygpjb3B5cmlnaHQ6YwpsaWNlbnNlOmQKbWFpbnRhaW5lcjplCnN0YWJpbGl0eTpmCnBvcnRhYmlsaXR5OmcKaC19bW9kdWxlIE0gd2hlcmU%3D)

---

<div class="post-metadata">

**Author:** ![augustss](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/augustss/32/887_2.png) [@augustss](https://discourse.haskell.org/u/augustss)\
**Post date:** [March 6, 2026, 8:49pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/13 "2026-03-06T20:49:54Z")

</div>

Oh, maybe it could work with MicroHs.

---

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 6, 2026, 9:02pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/14 "2026-03-06T21:02:53Z")

</div>

Currently Scrod is tightly coupled to GHC. I think it would be possible to build something similar around MicroHs. Hopefully the GHC stuff is pretty well quarantined in Scrod’s codebase, but I designed it to only support GHC.

---

<div class="post-metadata">

**Author:** ![Vlix](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/vlix/32/1551_2.png) [@Vlix](https://discourse.haskell.org/u/Vlix)\
**Post date:** [March 8, 2026, 10:37pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/15 "2026-03-08T22:37:48Z")

</div>

Would it be possible to completely ignore function bodies, as these are IIRC _never_ used in documentation? Because then, parse errors in function bodies wouldn’t be an issue.

I’d imagine this improving the developer experience when using it in VSCode or HLS or some such.

---

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 8, 2026, 10:57pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/16 "2026-03-08T22:57:19Z")

</div>

It might be possible in theory, but I don’t think GHC’s parser can be convinced to do that. Also Scrod _does_ use the function body (to get the parameter names, if they exist). For example: [Scrod](https://scrod.fyi/#input=aWQgOjogYSB7LSBeIGZvbyAtfSAtPiBhCmlkIHggPSB4)

---

<div class="post-metadata">

**Author:** ![Vlix](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/vlix/32/1551_2.png) [@Vlix](https://discourse.haskell.org/u/Vlix)\
**Post date:** [March 8, 2026, 11:14pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/17 "2026-03-08T23:14:48Z")

</div>

Oh snap! Haddock doesn’t do that, does it? 🤔 Can you annotate arguments?

Though it’s still only the section before the `=`, so the RHS of the function definition isn’t actually used. I wonder if that could be done, somehow. Even if a completely different parser has to be created.

---

<div class="post-metadata">

**Author:** ![Ambrose](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/ambrose/32/5672_2.png) [@Ambrose](https://discourse.haskell.org/u/Ambrose)\
**Post date:** [March 8, 2026, 11:15pm UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/18 "2026-03-08T23:15:14Z")

</div>

What Haddock needs is more involved, but - anecdotally - I first tried to write [graphex](https://github.com/dustin/graphex)’s parser using the GHC parser. But that was a pain in the butt, so I just wrote something for what graphex needs (imports) using megaparsec in a quick sitting.

I definitely am glad I went that way. I didn’t consider it, but not failing when irrelevant stuff is borked is a nice side effect.

---

<div class="post-metadata">

**Author:** ![taylorfausak](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/taylorfausak/32/54_2.png) [@taylorfausak](https://discourse.haskell.org/u/taylorfausak)\
**Post date:** [March 9, 2026, 12:45am UTC](https://discourse.haskell.org/t/announcing-scrod-like-haddock-but-faster/13761/19 "2026-03-09T00:45:56Z")

</div>

> [@Vlix](#):
>
> Haddock doesn’t do that, does it?

Nope! As far as I know, Haddock does not retain function arguments at all.

> [@Vlix](#):
>
> Can you annotate arguments?

I don’t think so. You can document their types, of course. I think any documentation connected to the binding itself is simply dropped by GHC.

> [@Vlix](#):
>
> Even if a completely different parser has to be created.

This line of thinking reminds me of Kmett’s Coda and monoidal parsing: [Reddit - Please wait for verification](https://www.reddit.com/r/haskell/comments/75as61/monoidal_parsing_edward_kmett_scala_world/)

> [@Ambrose](#):
>
> I just wrote something for what graphex needs

I did consider going down this route for Scrod. However I wanted to leverage GHC (and Haddock) as much as possible to avoid another `haskell-src-exts` situation where Scrod handles things differently than GHC and I’m constantly trying to fix the problems.
