aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/fixtures
Commit message (Collapse)AuthorAgeFilesLines
* CI configuration for ghc-head (#1395)Ben Simms2021-05-281-2/+1
|
* Add support for labeled module referencesIñaki García Etxebarria2021-02-071-0/+3
| | | | | | | | | | Support a markdown-style way of annotating module references. For instance -- | [label]("Module.Name#anchor") will create a link that points to the same place as the module reference "Module.Name#anchor" but the text displayed on the link will be "label".
* Update parsing to strip whitespace from table cells (#1074)Alina Banerjee2020-03-208-91/+95
| | | | | | | | | | * Update parsing to strip leading & trailing whitespace from table cells * Update fixture data to disallow whitespaces at both ends in table cells * Add test case for whitespaces stripped from both ends of table cells * Update table reference test data for html tests
* Merge branch 'ghc-8.6' into ghc-8.8Alec Theriault2019-03-034-0/+47
|\
| * Make a fixture of weird parsing of lists (#997)Oleg Grenrus2019-02-044-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | The second example is interesting. If there's a list directly after the header, and that list has deeper structure, the parser is confused: It finds two lists: - One with the first nested element, - everything after it I'm not trying to fix this, as I'm not even sure this is a bug, and not a feature.
* | Fix/add to haddock-library test suiteAlec Theriault2018-11-066-5/+15
|/
* @since includes package name (#749)Alec Theriault2018-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Metadoc stores a package name This means that '@since' annotations can be package aware. * Get the package name the right way This should extract the package name for `@since` annotations the right way. I had to move `modulePackageInfo` around to do this and, in the process, I took the liberty to update it. Since it appears that finding the package name is something that can fail, I added a warning for this case. * Silence warnings * Hide package for local 'since' annotations As discussed, this is still the usual case (and we should avoid being noisy for it). Although this commit is large, it is basically only about threading a 'Maybe Package' from 'Haddock.render' all the way to 'Haddock.Backends.Xhtml.DocMarkup.renderMeta'. * Bump binary interface version * Add a '--since-qual' option This controls when to qualify since annotations with the package they come from. The default is always, but I've left an 'external' variant where only those annotations coming from outside of the current package are qualified. * Make ParserSpec work * Make Fixtures work * Use package name even if package version is not available The @since stuff needs only the package name passed in, so it makes sense to not be forced to pass in a version too.
* fixtures: Prevent stdout bufferingSimon Jakobi2018-03-141-1/+4
|
* fixtures: Slightly unmangle outputSimon Jakobi2018-03-141-1/+1
|
* Add fixture test for inline linksSimon Jakobi2018-03-142-0/+7
|
* Add fixture test for linksSimon Jakobi2018-03-142-0/+6
|
* Add fixture test for definition listsSimon Jakobi2018-03-142-0/+2
|
* Grid Tables (#718)Oleg Grenrus2018-02-0113-0/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add simple framework for running parser fixtures (#668)Oleg Grenrus2018-02-019-0/+168
* Add simple framework for running parser fixtures * Compatible with tree-diff-0.0.0.1 * Use parseParas to parse fixtures This allows to test all syntactic constructs available in haddock markup.