Skip to content

improve documentation of :doc and -haddock

I was preaching about :doc but people said "what? does not work here".

Of course it works for me since I have ghc option -haddock in my global cabal config since forever.

ghci does the right thing (it prints Try re-compiling with '-haddock'.) but GHC documantation feels incomplete:

(for context, https://club.tidalcycles.org/t/where-are-n-and-notes-documented/5109/8 )

... Can we just make -haddock the default in ghc? (I am not sure about implications - interface size and compile time might go up). Global -haddock was a bit risky before GHC version 9 (?) since it would occasionally refuse to generate code when a haddock comment was malformed. But I've never seen such an error recently.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information