[commit: haddock] ghc-head, ghc-head1, headdock-library-1.4.5, ie_avails, master, pr-filter-maps, pr/cabal-desc, v2.18, wip/T14529, wip/revert-ttg-2017-11-20, wip/ttg-2017-10-13, wip/ttg-2017-10-31, wip/ttg-2017-11-06, wip/ttg2-2017-11-10, wip/ttg3-2017-11-12, wip/ttg4-constraints-2017-11-13, wip/ttg6-unrevert-2017-11-22: Haddock support for bundled pattern synonyms (#627) (87c551f)

git at git.haskell.org git at git.haskell.org
Tue Nov 28 11:52:34 UTC 2017


Repository : ssh://git@git.haskell.org/haddock

On branches: ghc-head,ghc-head1,headdock-library-1.4.5,ie_avails,master,pr-filter-maps,pr/cabal-desc,v2.18,wip/T14529,wip/revert-ttg-2017-11-20,wip/ttg-2017-10-13,wip/ttg-2017-10-31,wip/ttg-2017-11-06,wip/ttg2-2017-11-10,wip/ttg3-2017-11-12,wip/ttg4-constraints-2017-11-13,wip/ttg6-unrevert-2017-11-22
Link       : http://git.haskell.org/haddock.git/commitdiff/87c551fc668b9251f2647cce8772f205e1cee154

>---------------------------------------------------------------

commit 87c551fc668b9251f2647cce8772f205e1cee154
Author: Christiaan Baaij <christiaan.baaij at gmail.com>
Date:   Fri Jun 9 08:26:43 2017 +0200

    Haddock support for bundled pattern synonyms (#627)
    
    * Haddock support for bundled pattern synonyms
    
    * Add fixities to bundled pattern synonyms
    
    * Add bundled pattern synonyms to the synopsis
    
    * Store bundled pattern fixities in expItemFixities
    
    * Add test for bundled pattern synonyms
    
    * Stop threading fixities
    
    * Include bundled pattern synonyms for re-exported data types
    
    Sadly, fixity information isn't found for re-exported data types
    
    * Support for pattern synonyms
    
    * Modify tests after #631
    
    * Test some reexport variations
    
    * Also lookup bundled pattern synonyms from `InstalledInterface`s
    
    * Check isExported for bundled pattern synonyms
    
    * Pattern synonym is exported check
    
    * Always look for pattern synonyms in the current module
    
    Another overlooked cornercase
    
    * Account for types named twice in export lists
    
    Also introduce a fast function for nubbing on a `Name` and use it
    throughout the code base.
    
    * correct fixities for reexported pattern synonyms
    
    * Fuse concatMap and map
    
    * Remove obsolete import
    
    * Add pattern synonyms to visible exports
    
    * Fix test
    
    * Remove corner case


>---------------------------------------------------------------

87c551fc668b9251f2647cce8772f205e1cee154
 CHANGES.md                                         |   2 +
 haddock-api/src/Haddock/Backends/LaTeX.hs          |  32 +-
 haddock-api/src/Haddock/Backends/Xhtml.hs          |   4 +-
 haddock-api/src/Haddock/Backends/Xhtml/Decl.hs     |  56 ++-
 haddock-api/src/Haddock/Backends/Xhtml/Layout.hs   |   4 +
 haddock-api/src/Haddock/GhcUtils.hs                |  14 +-
 .../src/Haddock/Interface/AttachInstances.hs       |  11 +-
 haddock-api/src/Haddock/Interface/Create.hs        | 183 +++++---
 haddock-api/src/Haddock/Interface/Rename.hs        |  12 +-
 haddock-api/src/Haddock/InterfaceFile.hs           |   8 +-
 haddock-api/src/Haddock/Types.hs                   |  50 ++-
 html-test/ref/BundledPatterns.html                 | 474 +++++++++++++++++++++
 html-test/ref/BundledPatterns2.html                | 472 ++++++++++++++++++++
 html-test/src/BundledPatterns.hs                   | 110 +++++
 html-test/src/BundledPatterns2.hs                  |  10 +
 15 files changed, 1329 insertions(+), 113 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 87c551fc668b9251f2647cce8772f205e1cee154


More information about the ghc-commits mailing list