-
- Downloads
Many LaTeX backend fixes
After this commit, we can run with `--latex` on all boot libraries without crashing (although the generated LaTeX still fails to compile in a handful of larger packages like `ghc` and `base`). * Add newlines after all block elements in LaTeX. This is important to prevent the final output from being more an more indented. See the `latext-test/src/Example` test case for a sample of this. * Support associated types in class declarations (but not yet defaults) * Several small issues for producing compiling LaTeX; - avoid empy `\haddockbeginargs` lists (ex: `type family Any`) - properly escape identifiers depending on context (ex: `Int#`) - add `vbox` around `itemize`/`enumerate` (so they can be in tables) * Several spacing fixes: - limit the width of `Pretty`-arranged monospaced code - cut out extra space characters in export lists - only escape spaces if there are _multiple_ spaces - allow type signatures to be multiline (even without docs) * Remove uninteresting and repetitive `main.tex`/`haddock.sty` files from `latex-test` test reference output. Fixes #935, #929 (LaTeX docs for `text` build & compile) Fixes #727, #930 (I think both are really about type families...)
Showing
- CHANGES.md 3 additions, 0 deletionsCHANGES.md
- haddock-api/src/Haddock/Backends/LaTeX.hs 118 additions, 98 deletionshaddock-api/src/Haddock/Backends/LaTeX.hs
- latex-test/Main.hs 3 additions, 1 deletionlatex-test/Main.hs
- latex-test/ref/ConstructorArgs/ConstructorArgs.tex 18 additions, 16 deletionslatex-test/ref/ConstructorArgs/ConstructorArgs.tex
- latex-test/ref/ConstructorArgs/haddock.sty 0 additions, 57 deletionslatex-test/ref/ConstructorArgs/haddock.sty
- latex-test/ref/ConstructorArgs/main.tex 0 additions, 11 deletionslatex-test/ref/ConstructorArgs/main.tex
- latex-test/ref/DefaultSignatures/DefaultSignatures.tex 14 additions, 14 deletionslatex-test/ref/DefaultSignatures/DefaultSignatures.tex
- latex-test/ref/DefaultSignatures/haddock.sty 0 additions, 57 deletionslatex-test/ref/DefaultSignatures/haddock.sty
- latex-test/ref/DefaultSignatures/main.tex 0 additions, 11 deletionslatex-test/ref/DefaultSignatures/main.tex
- latex-test/ref/Deprecated/Deprecated.tex 4 additions, 4 deletionslatex-test/ref/Deprecated/Deprecated.tex
- latex-test/ref/Deprecated/haddock.sty 0 additions, 57 deletionslatex-test/ref/Deprecated/haddock.sty
- latex-test/ref/Deprecated/main.tex 0 additions, 11 deletionslatex-test/ref/Deprecated/main.tex
- latex-test/ref/Example/Example.tex 30 additions, 0 deletionslatex-test/ref/Example/Example.tex
- latex-test/ref/GadtConstructorArgs/GadtConstructorArgs.tex 8 additions, 7 deletionslatex-test/ref/GadtConstructorArgs/GadtConstructorArgs.tex
- latex-test/ref/GadtConstructorArgs/haddock.sty 0 additions, 57 deletionslatex-test/ref/GadtConstructorArgs/haddock.sty
- latex-test/ref/GadtConstructorArgs/main.tex 0 additions, 11 deletionslatex-test/ref/GadtConstructorArgs/main.tex
- latex-test/ref/NamespacedIdentifier/NamespacedIdentifiers.tex 11 additions, 15 deletions...x-test/ref/NamespacedIdentifier/NamespacedIdentifiers.tex
- latex-test/ref/NamespacedIdentifier/haddock.sty 0 additions, 57 deletionslatex-test/ref/NamespacedIdentifier/haddock.sty
- latex-test/ref/NamespacedIdentifier/main.tex 0 additions, 11 deletionslatex-test/ref/NamespacedIdentifier/main.tex
- latex-test/ref/Simple/Simple.tex 4 additions, 4 deletionslatex-test/ref/Simple/Simple.tex
Loading
Please register or sign in to comment