haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
361 stars 241 forks source link

Add --qual flags as settable module attributes #750

Open gbaz opened 6 years ago

gbaz commented 6 years ago

Currently, qual settings don't seem to be settable in {-# OPTIONS_HADDOCK ... #-} pragmas. We should extend haddock to accept them, as there are certain packages (i.e. with ML-style naming module naming schemes where types are all T etc) that should have this set by default.

harpocrates commented 6 years ago

Any suggestion on how that would look? How about

{-# OPTIONS_HADDOCK qual=aliased #-}

The main difficulty here is that qual settings are currently not on a per-module basis.

gbaz commented 6 years ago

Any color of the bikeshed is fine by me, either that or qual-aliased.