aboutsummaryrefslogtreecommitdiff
path: root/latex-test
Commit message (Collapse)AuthorAgeFilesLines
* Follow hlint suggestion: unused LANGUAGE pragma. (#1504)Phil de Joux2022-07-191-1/+1
| | | | | * Follow hlint suggestion: unused LANGUAGE pragma. * Ignore within modules to pass linting and pass tests.
* Merge pull request #1342 from nomeata/joachim/haskell2010-in-tests-ghc-headHécate Moonlight2021-02-2210-0/+10
|\ | | | | html-test: Always set language
| * html-test: Always set languageJoachim Breitner2021-02-2210-0/+10
| | | | | | | | | | | | | | | | | | | | from ghc-9.2 on, the “default” langauge of GHC is expected to change more wildly. To prepare for that (and unblock https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4853), this sets the language for all the test files to `Haskell2010`. This should insolate this test suite against changes to the default. Cherry-picked from https://github.com/haskell/haddock/pull/1341
* | Stable sort for (data/newtype) instancesalexbiehl2021-02-111-2/+2
|/
* Merge remote-tracking branch 'origin/ghc-9.0' into ghc-headBen Gamari2021-01-1325-409/+249
|\
| * Many LaTeX backend fixesAlec Theriault2019-03-0927-634/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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...)
| * Avoid multi-line `emph` in LaTeX backendAlec Theriault2019-03-094-0/+92
| | | | | | | | | | | | | | | | `markupWarning` often processes inputs which span across paragraphs. Unfortunately, LaTeX's `emph` is not made to handle this (and will crash). Fixes #936.
| * Better support for default methods in classesAlec Theriault2019-03-094-0/+128
| | | | | | | | | | | | | | | | | | | | * default methods now get rendered differently * default associated types get rendered * fix a forgotten `s/TypeSig/ClassOpSig/` refactor in LaTeX backend * LaTeX backend now renders default method signatures NB: there is still no way to document default class members and the NB: LaTeX backend still crashes on associated types
| * Support value/type namespaces on identifier linksAlec Theriault2019-02-254-0/+122
| | | | | | | | | | | | | | | | | | | | | | Identifier links can be prefixed with a 'v' or 't' to indicate the value or type namespace of the desired identifier. For example: -- | Some link to a value: v'Data.Functor.Identity' -- -- Some link to a type: t'Data.Functor.Identity' The default is still the type (with a warning about the ambiguity)
* | Display linear/multiplicity arrows correctly (#1238)Krzysztof Gogolewski2020-12-164-0/+112
|/ | | | Previously we were ignoring multiplicity and displayed a %1 -> b as a -> b.
* Accept test casesAlec Theriault2018-08-213-0/+104
|
* Better rendering of unboxed sums/tuplesAlec Theriault2018-08-211-0/+18
| | | | | * adds space after/before the '#' marks * properly reify 'HsSumTy' in 'synifyType'
* Latex type families (#734)Alec Theriault2018-08-044-0/+133
| | | | | | | | | | | | | | | | | | | | * Support for type families in LaTeX The code is ported over from the XHTML backend. * Refactor XHTML and LaTeX family handling This is mostly a consolidation effort: stripping extra exports, inlining some short definitions, and trying to make the backends match. The LaTeX backend now has preliminary support for data families, although the only the data instance head is printed (not the actual constructors). Both backends also now use "newtype" for newtype data family instances. * Add some tests
* Misc tests (#858)Alec Theriault2018-07-208-0/+299
| | | | | | | | | | | | * More tests * spliced types * constructor/pattern argument docs * strictness marks on fields with argument docs * latex test cases need seperate directory * Accept tests
* Fix test failures on Windows (#564)Yuji Yamamoto2017-07-031-1/+3
| | | | | | | | | | * Ignore .stack-work * Fix for windows: use nul instead of /dev/null * Fix for windows: canonicalize line separator * Also normalize osx line endings
* testsuite: Rework handling of output sanitizationBen Gamari2016-02-081-1/+2
| | | | | | | | | Previously un-cleaned artifacts were kept as reference output, making it difficult to tell what has changed and causing spurious changes in the version control history. Here we rework this, cleaning the output during acceptance. To accomplish this it was necessary to move to strict I/O to ensure the reference handle was closed before accept attempts to open the reference file.
* Get rid of obsolete testing utilities.Łukasz Hanuszczak2015-08-242-208/+0
|
* Accept output for Hoogle and LaTeX backends.Łukasz Hanuszczak2015-08-241-2/+1
|
* Improve portability of test runner scripts.Łukasz Hanuszczak2015-08-221-2/+3
|
* Create test runner entry points for LaTeX test suite.Łukasz Hanuszczak2015-08-222-0/+32
|
* solve dataDir ambiguityjpmoresmau2015-01-221-1/+1
|
* Revert "Merge branch 'reverts'"Mateusz Kowalczyk2014-12-121-1/+1
| | | | | | | | This reverts commit 5c93cc347773c7634321edd5f808d5b55b46301f, reversing changes made to 5b81a9e53894d2ae591ca0c6c96199632d39eb06. Conflicts: haddock-api/src/Haddock/Convert.hs
* Revert "Disambiguate ‘die’ in test runners."Mateusz Kowalczyk2014-08-141-1/+1
| | | | This reverts commit dba02d6df32534aac5d257f2d28596238d248942.
* Disambiguate ‘die’ in test runners.Mateusz Kowalczyk2014-05-031-1/+1
|
* LaTeX tests setupMateusz Kowalczyk2013-08-276-0/+298