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.
Showing
- src/Haddock.hs 4 additions, 2 deletionssrc/Haddock.hs
- src/Haddock/Backends/Hoogle.hs 1 addition, 1 deletionsrc/Haddock/Backends/Hoogle.hs
- src/Haddock/Backends/LaTeX.hs 3 additions, 3 deletionssrc/Haddock/Backends/LaTeX.hs
- src/Haddock/Backends/Xhtml.hs 7 additions, 7 deletionssrc/Haddock/Backends/Xhtml.hs
- src/Haddock/Backends/Xhtml/Decl.hs 105 additions, 90 deletionssrc/Haddock/Backends/Xhtml/Decl.hs
- src/Haddock/Backends/Xhtml/Layout.hs 8 additions, 4 deletionssrc/Haddock/Backends/Xhtml/Layout.hs
- src/Haddock/Backends/Xhtml/Types.hs 10 additions, 2 deletionssrc/Haddock/Backends/Xhtml/Types.hs
- src/Haddock/Interface/Create.hs 27 additions, 22 deletionssrc/Haddock/Interface/Create.hs
- src/Haddock/Interface/Rename.hs 2 additions, 2 deletionssrc/Haddock/Interface/Rename.hs
- src/Haddock/Options.hs 11 additions, 7 deletionssrc/Haddock/Options.hs
- src/Haddock/Types.hs 4 additions, 0 deletionssrc/Haddock/Types.hs
Loading
Please register or sign in to comment