[commit: haddock] master: Differentiate between TH splices (line-links) and regular names (003f117)

git at git.haskell.org git at git.haskell.org
Sun Mar 9 07:12:18 UTC 2014


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

On branch  : master
Link       : http://git.haskell.org/haddock.git/commitdiff/003f11795e4413abae5275e8a855765c571ccab9

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

commit 003f11795e4413abae5275e8a855765c571ccab9
Author: Niklas Haas <git at nand.wakku.to>
Date:   Sun Mar 9 06:07:09 2014 +0100

    Differentiate between TH splices (line-links) and regular names
    
    This adds a new type of source code link, to a specific line rather than
    a specific declaration/name - this is used to link to the location of a
    TH splice that defines a certain name.
    
    Rather hefty changes throughout and still one unresolved issue (the line
    URLs aren't parsed from the third form of --read-interface which means
    they're currently restricted to same-interface links). Not sure if
    this issue is really worth all the hassle, especially since we could
    just use line links in general.
    
    This commit also contains some cleanup/clarification of the types in
    Haddock.Backends.Xhtml.Decl and shortens some overlong lines in the
    process. Notably, the Bool parameter was replaced by a Unicode type
    synonym to help clarify its presence in type signatures.


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

003f11795e4413abae5275e8a855765c571ccab9
 src/Haddock.hs                       |    6 +-
 src/Haddock/Backends/Hoogle.hs       |    2 +-
 src/Haddock/Backends/LaTeX.hs        |    6 +-
 src/Haddock/Backends/Xhtml.hs        |   14 +--
 src/Haddock/Backends/Xhtml/Decl.hs   |  195 ++++++++++++++++++----------------
 src/Haddock/Backends/Xhtml/Layout.hs |   12 ++-
 src/Haddock/Backends/Xhtml/Types.hs  |   12 ++-
 src/Haddock/Interface/Create.hs      |   49 +++++----
 src/Haddock/Interface/Rename.hs      |    4 +-
 src/Haddock/Options.hs               |   18 ++--
 src/Haddock/Types.hs                 |    4 +
 11 files changed, 182 insertions(+), 140 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 003f11795e4413abae5275e8a855765c571ccab9


More information about the ghc-commits mailing list