aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Xhtml
Commit message (Collapse)AuthorAgeFilesLines
...
* Make HTML class instance printer take optional signature argument.Łukasz Hanuszczak2015-08-211-9/+14
|
* Make type of type specialization function more general.Łukasz Hanuszczak2015-08-211-3/+3
|
* Create simple utility module for type specialization.Łukasz Hanuszczak2015-08-211-0/+21
|
* Apply promoted type quoting to type-level consing.Łukasz Hanuszczak2015-08-061-1/+6
|
* Fix quote syntax for promoted types.Łukasz Hanuszczak2015-08-062-3/+10
|
* Fix record field alignment when name is too longPhil Ruffwind2015-08-021-6/+4
| | | | | | | | | | | Change <dl> to <ul> and use display:table rather than floats to layout the record fields. This avoids bug #301 that occurs whenever the field name gets too long. Slight aesthetic change: the entire cell of the field's source code is now shaded gray rather than just the area where text exists. Fixes #301. Closes #421
* Fix typo in Haddock.Backends.Xhtml.Layout: divSynposis -> divSynopsisPhil Ruffwind2015-08-021-3/+3
| | | | Closes #408
* Link to the definitions to themselvesPhil Ruffwind2015-08-021-8/+13
| | | | | | | | | | | | | | | | | | Currently, the definitions already have an anchor tag that allows URLs with fragment identifiers to locate them, but it is rather inconvenient to obtain such a URL (so-called "permalink") as it would require finding the a link to the corresponding item in the Synopsis or elsewhere. This commit adds hyperlinks to the definitions themselves, allowing users to obtain links to them easily. To preserve the original aesthetics of the definitions, we alter the color of the link so as to be identical to what it was, except it now has a hover effect indicating that it is clickable. Additionally, the anchor now uses the 'id' attribute instead of the (obsolete) 'name' attribute. Closes #407
* Fix expansion icon for user-collapsible sectionsMateusz Kowalczyk2015-07-111-2/+3
| | | | Closes #412
* 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
|
* Fix alignment of Source links in instance table in FirefoxPhil Ruffwind2015-06-121-2/+3
| | | | | | | | | | | | | | | | | | | Due to a Firefox bug [1], a combination of 'whitespace: nowrap' on the parent element with 'float: right' on the inner element can cause the floated element to be displaced downwards for no apparent reason. To work around this, the left side is wrapped in its own <span> and set to 'float: left'. As a precautionary measure to prevent the parent element from collapsing entirely, we also add the classic "clearfix" hack. The latter is not strictly needed but it helps prevent bugs if the layout is altered again in the future. Fixes #384. Remark: line 159 of src/Haddock/Backends/Xhtml/Layout.hs was indented to prevent confusion over the operator precedence of (<+>) vs (<<). [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=488725
* Attach to instance location the name that has the same location filejpmoresmau2015-06-122-15/+15
| | | | Fixes #383
* Do not insert anchor for section headings in contents boxwatashi2015-04-261-1/+4
|
* Remove now redundant importsMateusz Kowalczyk2015-03-263-5/+0
|
* Follow API changes in D538Alan Zimmerman2015-01-231-13/+13
| | | | | Signed-off-by: Austin Seipp <aseipp@pobox.com> (cherry picked from commit d61bbc75890e4eb0ad508b9c2a27b91f691213e6)
* Links to source location of class instance definitionsjpmoresmau2015-01-222-21/+41
|
* Only keep one Version instead of blindly appendingMateusz Kowalczyk2014-12-171-3/+3
|
* Various fixups and bumps for next releaseMateusz Kowalczyk2014-12-121-4/+3
|
* For pattern synonyms, render "pattern" as a keywordDr. ERDI Gergo2014-12-121-1/+1
|
* Support for PartialTypeSignaturesThomas Winant2014-12-121-11/+18
| | | | | | | Conflicts: haddock-api/src/Haddock/Backends/Xhtml/Decl.hs haddock-api/src/Haddock/Convert.hs haddock-api/src/Haddock/Interface/Create.hs
* Follow API changes in D426Alan Zimmerman2014-12-121-20/+41
| | | | | | | | | Signed-off-by: Austin Seipp <aseipp@pobox.com> Conflicts: haddock-api/src/Haddock/Backends/LaTeX.hs haddock-api/src/Haddock/Backends/Xhtml/Decl.hs haddock-api/src/Haddock/Convert.hs
* Update Haddock to new pattern synonym type signature syntaxDr. ERDI Gergo2014-12-121-33/+39
| | | | | | Conflicts: haddock-api/src/Haddock/Backends/Xhtml/Decl.hs haddock-api/src/Haddock/Convert.hs
* Collapse user-defined section by default (re #335)Herbert Valerio Riedel2014-12-121-1/+1
| | | | | Conflicts: haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs
* Followup changes to addition of -fwarn-context-quantification (GHC Trac #4426)Krzysztof Gogolewski2014-12-121-1/+2
|
* Revert "Merge branch 'reverts'"Mateusz Kowalczyk2014-12-123-4/+4
| | | | | | | | This reverts commit 5c93cc347773c7634321edd5f808d5b55b46301f, reversing changes made to 5b81a9e53894d2ae591ca0c6c96199632d39eb06. Conflicts: haddock-api/src/Haddock/Convert.hs
* Allow the parser to spit out meta-infoMateusz Kowalczyk2014-12-102-32/+52
| | | | | | | | | | | | | | | Currently we only use it only for ‘since’ annotations but with these patches it should be fairly simple to add new attributes if we wish to. Closes #26. It seems to work fine but due to 7.10 rush I don't have the chance to do more exhaustive testing right now. The way the meta is output (emphasis at the end of the whole comment) is fairly arbitrary and subject to bikeshedding. Note that this makes test for Bug310 fail due to interface version bump: it can't find the docs for base with this interface version so it fails. There is not much we can do to help this because it tests for ’built-in’ identifier, not something we can provide ourselves.
* Experimental support for collapsable headersMateusz Kowalczyk2014-10-293-20/+109
| | | | Closes #335
* Omit unnecessary foralls and fix #315Niklas Haas2014-08-241-21/+20
| | | | This also fixes #86.
* Fix extra whitespace on signatures and update all test casesNiklas Haas2014-08-241-2/+2
| | | | | This was long overdue, now running ./accept.lhs on a clean test from master will not generate a bunch of changes.
* Move sources under haddock-api/srcMateusz Kowalczyk2014-08-237-0/+1898