aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Hyperlinker
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.
* Support the new 'ITcolumn_prag' tokenAlec Theriault2018-02-021-0/+2
|
* Properly color pragma contents in hyperlinkerAlec Theriault2018-02-021-13/+65
| | | | | | The hyperlinker backend now classifies the content of pragmas as 'TkPragma'. That means that in something like '{-# INLINE foo #-}', 'foo' still gets classified as a pragma token.
* Warning free compilationAlexander Biehl2018-02-011-1/+0
|
* Hyperlinker: Adjust parser to new PFailed constructorAlexander Biehl2018-02-011-8/+8
|
* Use the GHC lexer for the Hyperlinker backend (#714)Alec Theriault2018-02-014-238/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-212-53/+69
|\
| * Hyperlinker: Avoid linear lookup in enrichToken (#669)Alexander Biehl2017-08-192-41/+53
| | | | | | | | | | | | * 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
|
* Change Hyperlinked lexer to know about DataKinds ticksOleg Grenrus2016-05-242-1/+14
|
* Changes due to fix for GHC#11648.Richard Eisenberg2016-03-151-1/+1
| | | | (cherry picked from commit bb994de1ab0c76d1aaf1e39c54158db2526d31f1)
* 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
|
* Make hyperlinked source renderer generate line anchors.Łukasz Hanuszczak2015-08-021-3/+23
|
* Add some utility definitions for generating line anchors.Łukasz Hanuszczak2015-08-021-2/+23
|
* Fix bug with module name being hyperlinked to `Prelude`.Łukasz Hanuszczak2015-07-061-3/+4
|
* Add short documentation for hyperlinker source map type.Łukasz Hanuszczak2015-07-061-0/+9
|
* Add support for hyperlinking modules in import lists.Łukasz Hanuszczak2015-07-062-15/+16
|
* Move source paths types to hyperlinker types module.Łukasz Hanuszczak2015-07-062-1/+13
|
* Extract main hyperlinker types to separate module.Łukasz Hanuszczak2015-07-065-62/+69
|
* Refactor source path mapping to use modules as indices.Łukasz Hanuszczak2015-07-051-19/+17
|
* 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
|
* Fix issue with operators being recognized as preprocessor directives.Łukasz Hanuszczak2015-07-021-3/+3
|
* Improve support for hyperlinking type families.Łukasz Hanuszczak2015-07-022-1/+8
|
* 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-012-5/+46
|
* 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 basic tests related to comment parsing.Łukasz Hanuszczak2015-06-301-1/+1
|
* 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
|