aboutsummaryrefslogtreecommitdiff
path: root/html-test
Commit message (Collapse)AuthorAgeFilesLines
* Add some more unicode related tests (#872)Alec Theriault2018-07-202-0/+118
| | | | | | | | | | This has been fixed for sure ever since we switched from attoparsec to parsec. Parts of it may have been working before that, but there was a point where this would have failed (see #191). A regression test never hurt anyone. :) (cherry picked from commit 5ec7715d418bfac0f26aec6039792a99a6e89370)
* Misc tests (#858)Alec Theriault2018-07-206-0/+1075
| | | | | | | | | | | | * More tests * spliced types * constructor/pattern argument docs * strictness marks on fields with argument docs * latex test cases need seperate directory * Accept tests
* Preserve docs on type family instances (#867)Alec Theriault2018-07-202-16/+32
| | | | | | | | | | | * Preserve docs on type family instances The only problem was that the instance location was slightly off for type family instances. * Accept output (cherry picked from commit 133e9c2c168db19c1135479f7ab144c4e33af2a4)
* Refactor handling of parens in types (#874)Alec Theriault2018-07-202-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | * Fix type parenthesization in Hoogle backend Ported the logic in the HTML and LaTeX backends for adding in parens into something top-level in 'GhcUtil'. Calling that from the Hoogle backend fixes #873. * Remove parenthesizing logic from LaTeX and XHTML backends Now, the only times that parenthesis in types are added in any backend is through the explicit 'HsParTy' constructor. Precedence is also represented as its own datatype. * List out cases explicitly vs. catch-all * Fix printing of parens for QuantifiedConstraints The priority of printing 'forall' types was just one too high. Fixes #877. * Accept HTML output for quantified contexts test
* Fix HEAD html-test (#860)Alec Theriault2018-07-1955-396/+1592
| | | | | | | | | | * Update tests for 'StarIsType' * Accept tests * Revert "Update tests for 'StarIsType'" This reverts commit 7f0c01383bbba6dc5af554ee82988d2cf44e407a.
* html-test: Accept outputSimon Jakobi2018-06-1359-1722/+460
|
* Use `ClassOpSig` instead of `TypeSig` for class methods (#835)Alec Theriault2018-06-1312-136/+120
| | | | | | | | * Fix minimal pragma handling Class declarations contain 'ClassOpSig' not 'Typesig'. This should fix #834. * Accept html-test output
* Travis: Build with ghc-8.4.2 (#793)Alexander Biehl2018-04-032-6/+6
|
* Show where instances are defined (#748)Alec Theriault2018-03-2118-89/+495
| | | | | | | | | | | | | | * Indicate source module of instances Above instance, we now also display a link to the module where the instance was defined. This is sometimes helpful in figuring out what to import. * Source module for type/data families too * Remove parens * Accept tests
* Fix Bug548 for realalexbiehl2018-03-021-1/+1
|
* Revert "fix test"alexbiehl2018-03-021-1/+5
| | | | This reverts commit 1ac2f9569242f6cb074ba6e577285a4c33ae1197.
* haddock-test: Be more explicit which packages to passalexbiehl2018-03-023-5/+23
| | | | | | We now pass `-hide-all-packages` to haddock when invoking the testsuite. This ensures we don't accidentally pick up any dependencies up through ghc.env files.
* fix testalexbiehl2018-03-021-5/+1
|
* Support unicode operators, proper modulesAlec Theriault2018-03-022-0/+86
| | | | | | | | Unicode operators are a pretty big thing in Haskell, so supporting linking them seems like it outweighs the cost of the extra machinery to force Attoparsec to look for unicode. Fixes #458.
* Make testsuite work with haddock-1.19.0 release (#766)Alexander Biehl2018-03-0274-1536/+1687
|
* Fix infinite loop when specializing instance heads (#723)Alec Theriault2018-02-012-0/+220
| | | | | | | | | * Fix infinite loop when specializing instance heads The bug can only be triggered from TH, hence why it went un-noticed for so long. * Add test for #679 and #710
* Grid Tables (#718)Oleg Grenrus2018-02-012-0/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add table examples * Add table types and adopt simple parser Simple parser is done by Giovanni Cappellotto (@potomak) in https://github.com/haskell/haddock/pull/577 It seems to support single fine full tables, so far from full RST-grid tables, but it's good start. Table type support row- and colspans, but obviously parser is lacking. Still TODO: - Latex backend. Should we use multirow package https://ctan.org/pkg/multirow?lang=en? - Hoogle backend: ? * Implement grid-tables * Refactor table parser * Add two ill-examples * Update CHANGES.md * Basic documentation for tables * Fix documentation example
* Treat escaped \] better in definition lists (#717)Alexander Biehl2018-02-012-0/+328
| | | This fixes #546.
* Clickable anchors for headings (#716)Alec Theriault2018-02-015-58/+108
| | | | See #579. This just adds an <a> tag around the heading, pointing to the heading itself.
* Fix #548 by rendering datatype kinds more carefully (#702)Ryan Scott2018-02-012-0/+603
|
* Use <details> element for collapsibles (#690)Tim Baumann2017-10-0965-2424/+2728
| | | | | | | | | | | * Remove unnecessary call to 'collapseSection' The call is unnecessary since there is no corresponding toggle for hiding the section of orphan instances. * Use <details> for collapsibles This makes them work even when JS is disabled. Closes #560.
* Add compile step that bundles and compresses JS files (#684)Tim Baumann2017-09-2390-1530/+180
| | | | | | | | | | | | | | | | | | * Add compile step that bundles and compresses JS files Also, manage dependencies on third-party JS libraries using NPM. * Compile JS from TypeScript * Enable 'noImplicitAny' in TypeScript * QuickJump: use JSX syntax * Generate source maps from TypeScript for easier debugging * TypeScript: more accurate type * Separate quick jump css file from ocean theme
* Fix test fallout (again)alexbiehl2017-08-2990-0/+450
|
* Accept testsalexbiehl2017-08-2890-540/+540
|
* Fix tests for content searchalexbiehl2017-08-2890-21/+641
|
* Fix: Generate pattern signatures for constructors exported as patterns (#663)Tim Baumann2017-08-064-1/+233
| | | | | | | | | | | | | | | | | | | | | | | | * Fix pretty-printing of pattern signatures Pattern synonyms can have up to two contexts, both having a different semantic meaning: The first holds the constraints required to perform the matching, the second contains the constraints provided by a successful pattern match. When the first context is empty but the second is not it is necessary to render the first, empty context. * Generate pattern synonym signatures for ctors exported as patterns This fixes #653. * Simplify extractPatternSyn It is not necessary to generate the simplest type signature since it will be simplified when pretty-printed. * Add changelog entries for PR #663 * Fix extractPatternSyn error message
* Fix renaming after instance signature specializing (#660)Moritz Drexl2017-08-053-89/+365
| | | | | | | | | | * rework rename * Add regression test for Bug 613 * update tests * update changelog
* Document record fields when DuplicateRecordFields is enabled (#649)Alex Biehl2017-07-032-0/+185
|
* Make per-argument docs for class methods work again (#648)Alex Biehl2017-06-292-0/+120
| | | | | | * Make per-argument docs for class methods work again * Test case
* Don't include names with empty subordinates in maps (#644)Alex Biehl2017-06-233-0/+90
| | | These are unecessary anyway and just blow up interface size
* Haddock support for bundled pattern synonyms (#627)Christiaan Baaij2017-06-094-0/+1066
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Allow user defined signatures for pattern synonyms (#631)Alex Biehl2017-06-032-0/+34
|
* Improve error messageSergey Vinokurov2017-04-292-3/+3
|
* Remove anything related to obsolete frames modealexbiehl2017-04-2683-296/+165
|
* `html-test --accept` deltas to reference samplesHerbert Valerio Riedel2017-04-258-115/+183
|
* Use new MathJax URL in html-testalexbiehl2017-04-25136-217/+217
| | | | | 18ed871afb82560d5433b2f53e31b4db9353a74e switched to a new MathJax URL but didn't update the tests.
* Update test suite to expect kind annotations on type parameters.Brian Huffman2017-03-232-5/+9
|
* Copyright holders shown on several lines. Fix #279Sebastian Meric de Bellefon2016-06-162-5/+5
|
* Merge pull request #504 from Helkafen/issue-280Sebastian Méric de Bellefon2016-05-282-0/+92
|\ | | | | Fix #280. Parsing of module header
| * Fix #280. Parsing of module headerSebastian Meric de Bellefon2016-05-152-0/+92
| | | | | | | | The initial newlines were counted as indentation spaces, thus disturbing the parsing of next lines
* | remove framed view of the HTML documentation (see #114 and #274)Sebastian Meric de Bellefon2016-05-242-58/+0
| | | | | | | | | | Frames are a bit broken, ignored by Hackage, and considered obsolete in general. This patch disables frames generation. The mini_*.html files are still used in the synopsis.
* | Fix #303. Hide footer when printingSebastian Meric de Bellefon2016-05-141-0/+3
|/ | | | | The "Produced by Haddock" footer was overlapping the page's body when printing. This patch hides the footer with a css media rule.
* html-test: Update reference outputBen Gamari2016-05-107-240/+820
|
* Update tests for previous commitPhil Ruffwind2016-02-0880-645/+1586
|
* html-test: Accept test outputBen Gamari2016-02-0881-2873/+4556
|
* test: Compare on dumpBen Gamari2016-02-081-1/+2
| | | | | For reasons I don't understand the Xml representations differ despite their textual representations being identical.
* 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.
* Merge remote-tracking branch 'idontgetoutmuch/ghc-head' into ghc-headBen Gamari2015-12-2557-0/+258
|\
| * Fix the documentation for haddock itself.Dominic Steinitz2015-12-2157-2/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change notation and add support for inline math. Allow newlines in display math. Add a command line option for the mathjax url (you might want to use a locally installed version). Rebase tests because of extra url and version change. Respond to (some of the) comments. Fix warnings in InterfaceFile.hs
| * Handle inline math with mathjax.Dominic Steinitz2015-12-213-0/+118
| |