aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Xhtml/Utils.hs
Commit message (Collapse)AuthorAgeFilesLines
* Constructor and pattern synonym argument docs (#709)Alec Theriault2018-01-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support Haddocks on constructor arguments This is in conjunction with https://phabricator.haskell.org/D4094. Adds support for rendering Haddock's on (non-record) constructor arguments, both for regular and GADT constructors. * Support haddocks on pattern synonym arguments It appears that GHC already parsed these - we just weren't using them. In the process of doing this, I tried to deduplicate some code around handling patterns. * Update the markup guide Add some information about the new support for commenting constructor arguments, and mention pattern synonyms and GADT-style constructors. * Overhaul LaTeX support for data/pattern decls This includes at least * fixing several bugs that resulted in invalid LaTeX * fixing GADT data declaration headers * overhaul handling of record fields * overhaul handling of GADT constructors * overhaul handling of bundled patterns * add support for constructor argument docs * Support GADT record constructors This means changes what existing HTML docs look like. As for LaTeX, looks like GADT records were never even supported. Now they are. * Clean up code/comments Made code/comments consistent between the LaTeX and XHTML backend when possible. * Update changelog * Patch post-rebase regressions * Another post-rebase change We want return values to be documentable on record GADT constructors.
* Use <details> element for collapsibles (#690)Tim Baumann2017-10-091-19/+16
| | | | | | | | | | | * Remove unnecessary call to 'collapseSection' The call is unnecessary since there is no corresponding toggle for hiding the section of orphan instances. * Use <details> for collapsibles This makes them work even when JS is disabled. Closes #560.
* Add support for unboxed sumsÖmer Sinan Ağacan2016-07-211-1/+5
|
* UnfelpfulSpan line number omittedOleg Grenrus2016-05-241-2/+1
| | | | Kind of resolves https://github.com/haskell/haddock/issues/508
* Move the permalinks to "#" on the right sidePhil Ruffwind2016-02-081-1/+1
| | | | | | | | | Since pull request #407, the identifiers have been permalinked to themselves, but this makes it difficult to copy the identifier by double-clicking. To work around this usability problem, the permalinks are now placed on the far right adjacent to "Source", indicated by "#". Also, 'namedAnchor' now uses 'id' instead of 'name' (which is obsolete).
* Fix quote syntax for promoted types.Łukasz Hanuszczak2015-08-061-1/+6
|
* Delete trailing whitespaceMateusz Kowalczyk2015-07-071-1/+1
|
* Document some functions in XHTML utlity module.Łukasz Hanuszczak2015-07-011-0/+8
|
* Rewrite source generation to fixed links and directory structure.Łukasz Hanuszczak2015-06-301-5/+9
|
* Move sources under haddock-api/srcMateusz Kowalczyk2014-08-231-0/+218