Skip to content

Named documentation chunks in module headers

Originally opened at https://github.com/haskell/haddock/issues/965 by @sgraf812

Apparently, haddock (or the parser, rather) doesn't allow named chunk references in the module header:

-- |
-- $doc
module Foo where

-- $doc
-- foo
Foo.hs:2:1: error: parse error on input ‘-- $doc’
  |
2 | -- $doc
  | ^^^^^^^
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information