Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [TTG: Handling Source Locations] Foundation and Pat | Shayan-Najd | 2018-11-23 | 1 | -30/+48 |
| | | | | | | | | | | | Trac Issues #15495 This patch removes the ping-pong style from HsPat (only, for now), using the plan laid out at https://ghc.haskell.org/trac/ghc/wiki/ImplementingTreesThatGrow/HandlingSourceLocations (solution A). - the class `HasSrcSpan`, and its functions (e.g., `cL` and `dL`), are introduced - some instances of `HasSrcSpan` are introduced - some constructors `L` are replaced with `cL` - some patterns `L` are replaced with `dL->L` view pattern - some type annotation are necessarily updated (e.g., `Pat p` --> `Pat (GhcPass p)`) | ||||
* | Complete FixitySig and FamilyDecl pattern matches | Simon Jakobi | 2018-06-13 | 1 | -0/+3 |
| | |||||
* | Merge branch 'ghc-head' with 'ghc-8.4' | Herbert Valerio Riedel | 2018-05-01 | 1 | -26/+28 |
|\ | |||||
| * | Match changes in GHC for TTG | Alan Zimmerman | 2018-04-27 | 1 | -8/+10 |
| | | |||||
| * | Match GHC for TTG implemented on HsBinds, D4581 | Alan Zimmerman | 2018-04-13 | 1 | -3/+3 |
| | | |||||
| * | Match GHC changes for TTG | Alan Zimmerman | 2018-04-09 | 1 | -8/+8 |
| | | |||||
* | | Don't treat fixity signatures like declarations | alexbiehl | 2018-04-20 | 1 | -1/+1 |
| | | |||||
* | | Hyperlinker: Links for TyOps, class methods and associated types | alexbiehl | 2018-03-05 | 1 | -1/+14 |
| | | |||||
* | | Hyperlinker: Also link pattern synonym arguments | alexbiehl | 2018-02-06 | 1 | -2/+5 |
| | | |||||
* | | Hyperlink pattern synonyms and 'module' imports (#744) | Alec Theriault | 2018-02-05 | 1 | -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 Theriault | 2018-02-01 | 1 | -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 Gamari | 2017-11-21 | 1 | -6/+6 |
| | | | | This reverts commit 01eeeb048acd2dd05ff6471ae148a97cf0720547. | ||||
* | Revert "Match Trees that Grow in GHC for HsExpr" | Ben Gamari | 2017-11-21 | 1 | -2/+2 |
| | | | | This reverts commit 9f054dc365379c66668de6719840918190ae6e44. | ||||
* | Match Trees that Grow in GHC for HsExpr | Alan Zimmerman | 2017-11-11 | 1 | -2/+2 |
| | |||||
* | Match changes for Trees that Grow in GHC | Alan Zimmerman | 2017-11-07 | 1 | -6/+6 |
| | |||||
* | Update for #14131 | Ryan Scott | 2017-08-23 | 1 | -4/+5 |
| | |||||
* | Merge remote-tracking branch 'origin/master' into ghc-head | alexbiehl | 2017-08-21 | 1 | -49/+59 |
|\ | |||||
| * | Hyperlinker: Avoid linear lookup in enrichToken (#669) | Alexander Biehl | 2017-08-19 | 1 | -37/+43 |
| | | | | | | | | | | | | * Make Span strict in Position * Hyperlinker: Use a proper map to enrich tokens | ||||
| * | Improve Syb code (#621) | Doug Wilson | 2017-05-27 | 1 | -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 tags | Alan Zimmerman | 2017-06-05 | 1 | -12/+12 |
| | | |||||
* | | Match new AST as per GHC wip/new-tree-one-param | Alan Zimmerman | 2017-06-05 | 1 | -12/+13 |
|/ | | | | See https://ghc.haskell.org/trac/ghc/wiki/ImplementingTreesThatGrow | ||||
* | Changes to match #13163 in GHC | Alan Zimmerman | 2017-01-26 | 1 | -4/+4 |
| | |||||
* | Matching changes for GHC wip/T12942 | Alan Zimmerman | 2016-12-12 | 1 | -1/+1 |
| | |||||
* | Match changes in GHC wip/T3384 branch | Alan Zimmerman | 2016-12-07 | 1 | -1/+1 |
| | |||||
* | Changes due to fix for GHC#11648. | Richard Eisenberg | 2016-03-14 | 1 | -1/+1 |
| | |||||
* | Fix Hyperlinker | Ben Gamari | 2015-12-16 | 1 | -1/+1 |
| | | | | GHC.con_names is now GHC.getConNames | ||||
* | Warnings | Matthew Pickering | 2015-12-14 | 1 | -1/+0 |
| | |||||
* | Changes to compile with 8.0 | Matthew Pickering | 2015-12-14 | 1 | -10/+14 |
| | |||||
* | Move SYB utilities to standalone module. | Łukasz Hanuszczak | 2015-08-21 | 1 | -14/+1 |
| | |||||
* | Fix bug with module name being hyperlinked to `Prelude`. | Łukasz Hanuszczak | 2015-07-06 | 1 | -3/+4 |
| | |||||
* | Extract main hyperlinker types to separate module. | Łukasz Hanuszczak | 2015-07-06 | 1 | -24/+3 |
| | |||||
* | Remove potentially dangerous record access in hyperlinker AST module. | Łukasz Hanuszczak | 2015-07-04 | 1 | -1/+1 |
| | |||||
* | Make hyperlinker generate anchors only to top-level value bindings. | Łukasz Hanuszczak | 2015-07-02 | 1 | -1/+2 |
| | |||||
* | Add support for anchoring signatures in type class declarations. | Łukasz Hanuszczak | 2015-07-02 | 1 | -0/+5 |
| | |||||
* | Improve support for hyperlinking type families. | Łukasz Hanuszczak | 2015-07-02 | 1 | -1/+7 |
| | |||||
* | Add support for anchoring data family constructor declarations. | Łukasz Hanuszczak | 2015-07-02 | 1 | -5/+6 |
| | |||||
* | Fix crash happening when hyperlinking type family declarations. | Łukasz Hanuszczak | 2015-07-02 | 1 | -0/+1 |
| | |||||
* | Make hyperlinker render qualified names as one entity. | Łukasz Hanuszczak | 2015-07-01 | 1 | -0/+1 |
| | |||||
* | Add support for hyperlinking universally quantified type variables. | Łukasz Hanuszczak | 2015-07-01 | 1 | -1/+7 |
| | |||||
* | Add support for hyperlinking synonyms in patterns. | Łukasz Hanuszczak | 2015-07-01 | 1 | -0/+2 |
| | |||||
* | Add support for hyperlinking field names in record expressions. | Łukasz Hanuszczak | 2015-06-30 | 1 | -1/+7 |
| | |||||
* | Add support for hyperlinking field names in record patterns. | Łukasz Hanuszczak | 2015-06-30 | 1 | -1/+5 |
| | |||||
* | Add support for hyperlinking constructor names in patters. | Łukasz Hanuszczak | 2015-06-30 | 1 | -0/+2 |
| | |||||
* | Make hyperlinker generate anchors for record field declarations. | Łukasz Hanuszczak | 2015-06-30 | 1 | -7/+9 |
| | |||||
* | Make hyperlinker generate correct anchors for data constructors. | Łukasz Hanuszczak | 2015-06-30 | 1 | -4/+9 |
| | |||||
* | Add some documentation for AST module of source hyperlinker. | Łukasz Hanuszczak | 2015-06-30 | 1 | -10/+46 |
| | |||||
* | Implement hyperlinking of imported module names. | Łukasz Hanuszczak | 2015-06-30 | 1 | -7/+12 |
| | |||||
* | Refactor the way AST names are handled within detailed tokens. | Łukasz Hanuszczak | 2015-06-30 | 1 | -18/+19 |
| | |||||
* | Add support for top-level function declaration anchors. | Łukasz Hanuszczak | 2015-06-30 | 1 | -1/+6 |
| | |||||
* | Add support for type declaration anchors. | Łukasz Hanuszczak | 2015-06-30 | 1 | -5/+16 |
| |