aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* For pattern synonyms, render "pattern" as a keywordDr. ERDI Gergo2014-11-291-1/+1
|
* Support for PartialTypeSignaturesThomas Winant2014-11-288-56/+73
|
* Follow API changes in D426Alan Zimmerman2014-11-218-86/+120
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Changes to reflect refactoring in GHC as part of #7484Richard Eisenberg2014-11-201-0/+1
|
* Follow changes from #9812Jan Stolarek2014-11-201-11/+8
|
* Update Haddock to new pattern synonym type signature syntaxDr. ERDI Gergo2014-11-205-84/+85
|
* Make compatible with `deepseq-1.4.0.0`Herbert Valerio Riedel2014-11-151-3/+3
| | | | ...by not relying on the default method implementation of `rnf`
* Remove overlapping pattern matchAustin Seipp2014-10-311-1/+0
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* reflect ForeignType constructore removalYuras Shumovich2014-10-311-4/+0
| | | | | | | | Reviewers: austin Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D358
* Collapse user-defined section by default (re #335)Herbert Valerio Riedel2014-10-311-2/+2
|
* Experimental support for collapsable headersMateusz Kowalczyk2014-10-294-29/+117
| | | | (cherry picked from commit e2ed3b9d8dfab09f1b1861dbc8e74f08e137ebcc)
* Fix use-after-close lazy IO bugEdward Z. Yang2014-10-091-1/+1
| | | | | | | | | Make `getPrologue` force `parseParas dflags str` before returning. Without this, it will attempt to read from the file after it is closed, with unspecified and generally bad results. Signed-off-by: David Feuer <David.Feuer@gmail.com> Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Revert "Fix import of 'empty' due to AMP."Herbert Valerio Riedel2014-09-261-1/+1
| | | | | | This reverts commit 0cc5bc85e9fca92ab712b68a2ba2c0dd9d3d79f4 since it turns out we don't need to re-export `empty` from Control.Monad after all.
* Revert "Revert "Followup changes to addition of -fwarn-context-quantification""Edward Z. Yang2014-09-183-2/+7
| | | | | This reverts commit db14fd8ab4fab43694139bc203808b814eafb2dc. It's in HEAD now.
* Revert "Followup changes to addition of -fwarn-context-quantification"Herbert Valerio Riedel2014-09-193-7/+2
| | | | | | This reverts commit 4023817d7c0e46db012ba2eea28022626841ca9b temporarily as the respective feature hasn't landed in GHC HEAD yet, but this commit blocks later commits from being referenced in GHC HEAD.
* Properly render package ID (not package key) in index, fixes #329.Edward Z. Yang2014-09-183-13/+18
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Followup changes to addition of -fwarn-context-quantification (GHC Trac #4426)Krzysztof Gogolewski2014-09-143-2/+7
|
* Fix import of 'empty' due to AMP.Austin Seipp2014-09-091-1/+1
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Follow changes to TypeAnnot in GHC HEADAlan Zimmerman2014-09-052-11/+26
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Changes due to ghc api changes in package representationDuncan Coutts2014-08-273-27/+17
| | | | | | | Also fix a bug with finding the package name and version given a module. This had become wrong due to the package key changes (it was very hacky in the first place). We now look up the package key in the package db to get the package info properly.
* Track type signature change of lookupModuleInAllPackagesEdward Z. Yang2014-08-051-6/+3
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Track changes for module reexports.Edward Z. Yang2014-07-251-2/+3
| | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Conflicts: src/Haddock/Interface/Create.hs
* Track GHC PackageId to PackageKey renaming.Edward Z. Yang2014-07-219-30/+30
| | | | | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Conflicts: src/Haddock/Interface/Create.hs
* Adapt to new definition of HsDecls.TyFamEqnSimon Peyton Jones2014-07-144-16/+26
| | | | | This is a knock-on from the refactoring from Trac #9063. I'll push the corresponding changes to GHC shortly.
* Propagate overloading-mode for instance declarations in haddock (#9242)Iavor S. Diatchki2014-07-011-2/+6
|
* Fix anchors. Closes #308.Mateusz Kowalczyk2014-06-251-1/+6
|
* Follow change in patSynSigSimon Peyton Jones2014-06-061-2/+2
|
* Revert "Revert "Accomodate change in PatSyn representation""Mateusz Kowalczyk2014-05-291-1/+1
| | | | | | | This reverts commit e110e6e70e40eed06c06676fd2e62578da01d295. Apparently as per GHC commit ac2796e6ddbd54c5762c53e2fcf29f20ea162fd5 this was actually intended. Embarrasing for me.
* Revert "Accomodate change in PatSyn representation"Mateusz Kowalczyk2014-05-291-1/+1
| | | | | | This reverts commit 57aa591362d7c8ba21285fccd6a958629a422091. I am reverting this because I pushed it to master when it was meant to stay on a wip-branch. Sorry Gergo and everyone who had trouble due to this.
* Accomodate change in PatSyn representationDr. ERDI Gergo2014-05-251-1/+1
|
* Remove no longer necessary parser error handling.Mateusz Kowalczyk2014-05-065-147/+105
| | | | | We can now drop some Maybe tests and even lets us strip an error handling monad away in a few places.
* Move parser + parser tests out to own package.Mateusz Kowalczyk2014-05-059-715/+52
| | | | | | | | | | We move some types out that are necessary as well and then re-export and specialise them in the core Haddock. Reason for moving out spec tests is that if we're working on the parser, we can simply work on that and we can ignore the rest of Haddock. The downside is that it's a little inconvenient if at the end of the day we want to see that everything passes.
* Prepare modules for parser split.Mateusz Kowalczyk2014-05-058-156/+194
| | | | | We have to generalise the Doc (now DocH) slightly to remove the dependency on GHC-supplied type.
* Replace local `die` by new `System.Exit.die`Herbert Valerio Riedel2014-04-211-5/+1
| | | | | | | | | | | | | Starting with GHC 7.10, System.Exit exports the new `die` which is essentially the same as Haddock.Util.die, so this commit changes Haddock.Util.die to be a simple re-export of System.Exit.die. See also https://ghc.haskell.org/trac/ghc/ticket/9016 for more details. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* remove Origin flag from LHsBindsLRDr. ERDI Gergo2014-04-131-8/+8
|
* Parse identifiers with ^ and ⋆ in them.Mateusz Kowalczyk2014-04-111-1/+9
| | | | Fixes #298.
* Crash when exporting record selectors of data family instancesNiklas Haas2014-03-311-10/+24
| | | | | | | | | | | | | | | | | | | This fixes bug #294. This also fixes a related but never-before-mentioned bug about the display of GADT record selectors with non-polymorphic type signatures. Note: Associated data type constructors fail to show up if nothing is exported that they could be attached to. Exporting any of the data types in the instance head, or the class + data family itself, causes them to show up, but in the absence of either of these, exporting just the associated data type with the constructor itself will result in it being hidden. The only scenario I can come up that would involve this kind of situation involved OverlappingInstances, and even then it can be mitigated by just exporting the class itself, so I'm not going to solve it since the logic would most likely be very complicated.
* Drop leading whitespace in @-style blocks.Mateusz Kowalczyk2014-03-311-3/+28
| | | | Fixes #201.
* Print kind signatures on GADTsMateusz Kowalczyk2014-03-311-6/+10
|
* Drop needless --split-objs which slows us down.Mateusz Kowalczyk2014-03-221-9/+8
| | | | Involves tiny cleanup of all the dynflag bindings. Fixes #292.
* Fix issue #281Niklas Haas2014-03-152-10/+14
| | | | | | | | | This is a regression from the data family instances change. Data instances are now distinguished from regular lists by usage of the new class "inst", and the style has been updated to only apply to those. I've also updated the appropriate test case to test this a bit better, including GADT instances with GADT-style records.
* Hide minimal definition for only-method classesNiklas Haas2014-03-151-1/+6
| | | | | | | Previously this was not covered by the All xs check since here it is not actually an All, rather a single Var n. This also adds the previously missing html-test/src/Minimal.hs.
* Style onlyMateusz Kowalczyk2014-03-131-32/+28
|
* Always read in prologue files as UTF8 (#286).Mateusz Kowalczyk2014-03-131-5/+9
|
* Display minimal complete definitions for type classesNiklas Haas2014-03-139-30/+78
| | | | | | | | | This corresponds to the new {-# MINIMAL #-} pragma present in GHC 7.8+. I also cleaned up some of the places in which ExportDecl is used to make adding fields easier in the future. Lots of test cases have been updated since they now render with minimality information.
* Add UnicodeSyntax alternatives for * and ->Niklas Haas2014-03-131-2/+7
| | | | | | | I could not find a cleaner way to do this other than checking for string equality with the given built-in types. But seeing as it's actually equivalent to string rewriting in GHC's implementation of UnicodeSyntax, it's probably fitting.
* Hide RHS of TFs with non-exported right hand sidesNiklas Haas2014-03-136-12/+13
| | | | | | Not sure what to do about data families yet, since technically it would not make a lot of sense to display constructors that cannot be used by the user.
* Revert "Reorder topDeclElem to move the source/wiki links to the top"Niklas Haas2014-03-111-1/+1
| | | | | | | This reverts commit 843c42c4179526a2ad3526e4c7d38cbf4d50001d. This change is no longer needed with the new rendering style, and it messes with copy/pasting lines.
* Filter family instances of hidden typesNiklas Haas2014-03-111-4/+11
| | | | | Currently, this check does not extend to hidden right hand sides, although it probably should hide them in that case.
* Update appearance of fixity annotationsNiklas Haas2014-03-111-17/+25
| | | | | | | This moves them in-line with their corresponding lines, similar to a presentation envision by @hvr and described in #ghc. Redundant operator names are also omitted when no ambiguity is present.