aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
Commit message (Collapse)AuthorAgeFilesLines
* Hyperlinker: Also link pattern synonym argumentsalexbiehl2018-02-061-2/+5
|
* Hyperlink pattern synonyms and 'module' imports (#744)Alec Theriault2018-02-051-4/+10
| | | | | | Links to pattern synonyms are now generated, as well as links from modules in import lists. Fixes #731.
* Use the GHC lexer for the Hyperlinker backend (#714)Alec Theriault2018-02-011-12/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start changing to use GHC lexer * better cpp * Change SrcSpan to RealSrcSpan * Remove error * Try to stop too many open files * wip * wip * Revert "wip" This reverts commit b605510a195f26315e3d8ca90e6d95a6737553e1. Conflicts: haddock-api/haddock-api.cabal haddock-api/src/Haddock/Interface.hs * Remove pointless 'caching' * Use dlist rather than lists when finding vars * Use a map rather than list * Delete bogus comment * Rebase followup Things now run using the GHC lexer. There are still - stray debug statements - unnecessary changes w.r.t. master * Cleaned up differences w.r.t. current Haddock HEAD Things are looking good. quasiquotes in particular look beautiful: the TH ones (with Haskell source inside) colour/link their contents too! Haven't yet begun to check for possible performance problems. * Support CPP and top-level pragmas The support for these is hackier - but no more hacky than the existing support. * Tests pass, CPP is better recognized The tests were in some cases altered: I consider the new output to be more correct than the old one.... * Fix shrinking of source without tabs in test * Replace 'Position'/'Span' with GHC counterparts Replaces 'Position' -> 'GHC.RealSrcLoc' and 'Span' -> 'GHC.RealSrcSpan'. * Nits * Forgot entry in .cabal * Update changelog
* Revert "Match changes for Trees that Grow in GHC"Ben Gamari2017-11-211-6/+6
| | | | This reverts commit 01eeeb048acd2dd05ff6471ae148a97cf0720547.
* Revert "Match Trees that Grow in GHC for HsExpr"Ben Gamari2017-11-211-2/+2
| | | | This reverts commit 9f054dc365379c66668de6719840918190ae6e44.
* Match Trees that Grow in GHC for HsExprAlan Zimmerman2017-11-111-2/+2
|
* Match changes for Trees that Grow in GHCAlan Zimmerman2017-11-071-6/+6
|
* Update for #14131Ryan Scott2017-08-231-4/+5
|
* Merge remote-tracking branch 'origin/master' into ghc-headalexbiehl2017-08-211-49/+59
|\
| * Hyperlinker: Avoid linear lookup in enrichToken (#669)Alexander Biehl2017-08-191-37/+43
| | | | | | | | | | | | * Make Span strict in Position * Hyperlinker: Use a proper map to enrich tokens
| * Improve Syb code (#621)Doug Wilson2017-05-271-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | Specialize.hs and Ast.hs are modified to have their Syb code not recurse into Name or Id in HsSyn types. Specialize.hs is refactored to have fewer calls to Syb functions. Syb.hs has some foldl calls replaced with foldl' calls. There is still a lot of performance on the floor of Ast.hs. The RenamedSource is traversed many times, and lookupBySpan is very inefficient. everywhereBut and lookupBySpan dominate the runtime whenever --hyperlinked-source is passed.
* | Rename extension index tagsAlan Zimmerman2017-06-051-12/+12
| |
* | Match new AST as per GHC wip/new-tree-one-paramAlan Zimmerman2017-06-051-12/+13
|/ | | | See https://ghc.haskell.org/trac/ghc/wiki/ImplementingTreesThatGrow
* Changes to match #13163 in GHCAlan Zimmerman2017-01-261-4/+4
|
* Matching changes for GHC wip/T12942Alan Zimmerman2016-12-121-1/+1
|
* Match changes in GHC wip/T3384 branchAlan Zimmerman2016-12-071-1/+1
|
* Changes due to fix for GHC#11648.Richard Eisenberg2016-03-141-1/+1
|
* Fix HyperlinkerBen Gamari2015-12-161-1/+1
| | | | GHC.con_names is now GHC.getConNames
* WarningsMatthew Pickering2015-12-141-1/+0
|
* Changes to compile with 8.0Matthew Pickering2015-12-141-10/+14
|
* Move SYB utilities to standalone module.Łukasz Hanuszczak2015-08-211-14/+1
|
* Fix bug with module name being hyperlinked to `Prelude`.Łukasz Hanuszczak2015-07-061-3/+4
|
* Extract main hyperlinker types to separate module.Łukasz Hanuszczak2015-07-061-24/+3
|
* Remove potentially dangerous record access in hyperlinker AST module.Łukasz Hanuszczak2015-07-041-1/+1
|
* Make hyperlinker generate anchors only to top-level value bindings.Łukasz Hanuszczak2015-07-021-1/+2
|
* Add support for anchoring signatures in type class declarations.Łukasz Hanuszczak2015-07-021-0/+5
|
* Improve support for hyperlinking type families.Łukasz Hanuszczak2015-07-021-1/+7
|
* Add support for anchoring data family constructor declarations.Łukasz Hanuszczak2015-07-021-5/+6
|
* Fix crash happening when hyperlinking type family declarations.Łukasz Hanuszczak2015-07-021-0/+1
|
* Make hyperlinker render qualified names as one entity.Łukasz Hanuszczak2015-07-011-0/+1
|
* Add support for hyperlinking universally quantified type variables.Łukasz Hanuszczak2015-07-011-1/+7
|
* Add support for hyperlinking synonyms in patterns.Łukasz Hanuszczak2015-07-011-0/+2
|
* Add support for hyperlinking field names in record expressions.Łukasz Hanuszczak2015-06-301-1/+7
|
* Add support for hyperlinking field names in record patterns.Łukasz Hanuszczak2015-06-301-1/+5
|
* Add support for hyperlinking constructor names in patters.Łukasz Hanuszczak2015-06-301-0/+2
|
* Make hyperlinker generate anchors for record field declarations.Łukasz Hanuszczak2015-06-301-7/+9
|
* Make hyperlinker generate correct anchors for data constructors.Łukasz Hanuszczak2015-06-301-4/+9
|
* Add some documentation for AST module of source hyperlinker.Łukasz Hanuszczak2015-06-301-10/+46
|
* Implement hyperlinking of imported module names.Łukasz Hanuszczak2015-06-301-7/+12
|
* Refactor the way AST names are handled within detailed tokens.Łukasz Hanuszczak2015-06-301-18/+19
|
* Add support for top-level function declaration anchors.Łukasz Hanuszczak2015-06-301-1/+6
|
* Add support for type declaration anchors.Łukasz Hanuszczak2015-06-301-5/+16
|
* Fix weird hyperlinking of parenthesized operators.Łukasz Hanuszczak2015-06-301-1/+6
|
* Fix span matching to allow parenthesized operators hyperlinking.Łukasz Hanuszczak2015-06-301-5/+5
|
* Implement module export- and import-list item hyperlinking.Łukasz Hanuszczak2015-06-301-1/+19
|
* Add support for binding token recognition.Łukasz Hanuszczak2015-06-301-1/+19
|
* Add support for type token recognition.Łukasz Hanuszczak2015-06-301-8/+27
|
* Constrain elements exported by hyperlinker modules.Łukasz Hanuszczak2015-06-301-1/+4
|
* Fix span matcher bug causing wrong items being hyperlinked.Łukasz Hanuszczak2015-06-301-1/+1
|
* Create simple mechanism for associating tokens with AST names.Łukasz Hanuszczak2015-06-301-7/+23
|