aboutsummaryrefslogtreecommitdiff
path: root/haddock-library
Commit message (Collapse)AuthorAgeFilesLines
* Bump the versionsHécate Moonlight2022-08-051-2/+2
|
* Merge remote-tracking branch 'origin/ghc-9.4'Ben Gamari2022-08-053-3/+3
|\
| * Merge remote-tracking branch 'upstream/ghc-9.2' into ghc-headBen Gamari2022-04-251-7/+6
| |\
| * | Link to (~)Vladislav Zavialov2022-03-141-0/+1
| | |
| * | CI configuration for ghc-head (#1395)Ben Simms2021-05-283-7/+4
| | |
* | | Fix the changelog and bump the version of haddock-library on ghc-9.2Hécate Moonlight2022-05-082-1/+8
| | |
* | | fix parsing trailing quotes in backticked identifiers (#1408) (#1483)Artem Pelenitsyn2022-05-082-2/+5
| | |
* | | Keep track of ordered list indexes and render them (#1407)Ben Simms2022-05-034-27/+42
| | | | | | | | | | | | | | | * Keep track of ordered list indexes and render them * Rename some identifiers to clarify
* | | Follow hlint, remove language pragmas in libs. (#1478)Phil de Joux2022-05-033-4/+1
| | |
* | | Add hlint action .hlint.yaml with ignores & CPP. (#1475)Phil de Joux2022-05-021-1/+2
| | |
* | | Parse Markdown links at beginning of line within a paragraph (#1470)Steve Hart2022-04-122-19/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Catch Markdown links at beginning of line within paragraph Per Issue #774, Markdown links were being parsed as ordinary text when they occurred at the beginning of a line other than the first line of the paragraph. This occurred because the parser was not interpreting a left square bracket as a special character that could delimit special markup. A space character was considered a special character, so, if a space occurred at the beginning of the new line, then the parser would interpret the space by itself and then continue parsing, thereby catching the Markdown link. '\n' was not treated as a special character, so the parser did not catch a Markdown link that may have followed. Note that this will allow for Markdown links that are not surrounded by spaces. For example, the following text includes a Markdown link that will be parsed: Hello, world[label](url) This is consistent with how the parser handles other types of markup. * Remove obsolete documentation hint Commit 6b9aeafddf20efc65d3725c16e3fc43a20aac343 should eliminate the need for the workaround suggested in the documentation.
* | | spelling errors (#1471)askeblad2022-04-061-1/+1
| | |
* | | Fix CI (#1467)Steve Hart2022-03-252-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | * CI: Reinstall GHC with docs CI tests were failing because the GHC preinstalled to the CI environment does not include documentation, which is required for running the Haddock tests. This commit causes the CI workflow to reinstall GHC with docs so that tests can succeed.
* | | typos (#1464)askeblad2022-03-162-3/+3
| |/ |/|
* | Allow text-2.0 in haddock-library (#1459)ˌbodʲɪˈɡrʲim2022-03-041-1/+1
| |
* | fix CI for 9.2 (#1436)Artem Pelenitsyn2021-11-271-2/+2
| |
* | haddock-library does not depend on bytestring or transformers (#1426)Bodigrim2021-10-121-2/+0
| |
* | Use GHC 9.2 in CI runner (#1378)Hécate Moonlight2021-05-281-2/+3
| |
* | Allow hspec 2.8 (#1389)Felix Yan2021-05-141-2/+2
|/ | | All tests are passing.
* Merge branch 'ghc-head' into ghc-9.0alexbiehl-gc2021-02-071-1/+1
|\
| * Merge remote-tracking branch 'origin/ghc-9.0' into ghc-headBen Gamari2021-01-1322-207/+498
| |\
| * | Bump base upper bound to 4.16Vladislav Zavialov2020-09-181-1/+1
| | |
* | | Remove dubious parseModLinkalexbiehl2021-02-071-4/+0
| | | | | | | | | | | | Instead construct the ModLink value directly when parsing.
* | | Add support for labeled module referencesIñaki García Etxebarria2021-02-075-28/+131
| |/ |/| | | | | | | | | | | | | | | | | 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".
* | Merge remote-tracking branch 'origin/ghc-8.10' into ghc-9.0Ben Gamari2021-01-0522-207/+498
|\ \ | |/ |/|
| * Fix haddock-library testsalexbiehl2020-12-081-1/+1
| |
| * Add dangling changes from branches ghc-8.6 and ghc-8.8 (#1243)Xia Li-yao2020-12-083-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix multiple typos and inconsistencies in doc/markup.rst Note: I noticed some overlap with #1112 from @wygulmage and #1081 from @parsonsmatt after creating these proposed changes - mea culpa for not looking at the open PRs sooner. * Fix #1113 If no Signatures, no section of index.html * Change the formatting of missing link destinations The current formatting of the missing link destination does not really help user to understand the reasons of the missing link. To address this, I've changed the formatting in two ways: - the missing link symbol name is now fully qualified. This way you immediately know which haskell module cannot be linked. It is then easier to understand why this module does not have documentation (hidden module or broken documentation). - one line per missing link, that's more readable now that symbol name can be longer due to qualification. For example, before haddock was listing missing symbol such as: ``` could not find link destinations for: Word8 Word16 mapMaybe ``` Now it is listed as: ``` could not find link destinations for: - Data.Word.Word8 - Data.Word.Word16 - Data.Maybe.mapMaybe ``` * Add `--ignore-link-symbol` command line argument This argument can be used multiples time. A missing link to a symbol listed by `--ignore-link-symbol` won't trigger "missing link" warning. * Forbid spaces in anchors (#1148) * Improve error messages with context information (#1060) Co-authored-by: Matt Audesse <matt@mattaudesse.com> Co-authored-by: Mike Pilgrem <mpilgrem@users.noreply.github.com> Co-authored-by: Guillaume Bouchard <guillaume.bouchard@tweag.io> Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
| * Allow more characters in anchor following module reference (#1220)Xia Li-yao2020-12-082-2/+11
| |
| * Allow QuickCheck 2.14Felix Yan2020-04-011-1/+1
| | | | | | Builds fine and all tests pass.
| * `haddock-library` document header levelAlec Theriault2020-03-282-5/+5
| | | | | | | | | | Document the fact the header level is going to always be between 1 and 6 inclusive. Along the way, I also optimized the parsing code a bit.
| * Cleanup up GHC flags in `.cabal` filesAlec Theriault2020-03-281-1/+1
| | | | | | | | | | | | | | | | * enable more useful warning flags in `haddock-api`, handle the new warnings generated * remove `-fwarn-tabs` (now we'd use `-Wtabs`, but this has been in `-Wall` for a while now)
| * Fix crash in `haddock-library` on unicode spaceAlec Theriault2020-03-272-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Our quickcheck tests for `haddock-library` stumbled across an edge case input that was causing Haddock to crash: it was a unicode space character. The root cause of the crash is that we were implicitly assuming that if a space character was not " \t\f\v\r", it would have to be "\n". We fix this by instead defining horizontal space as: any space character that is not '\n'. Fixes #1142
| * Update `.travis.yml` to work with GHC 8.10.1Alec Theriault2020-03-261-1/+12
| | | | | | | | | | | | * Regenerated the Travis file with `haskell-ci` * Beef up `.cabal` files with more `tested-with` information
| * Tentative 2.24 releaseAlec Theriault2020-03-222-2/+4
| | | | | | | | | | Adjusted changelogs and versions in `.cabal` files in preparation for the upcoming release bundled with GHC 8.10.
| * Clean up warningsAlec Theriault2020-03-221-14/+12
| | | | | | | | | | | | * unused imports * imports of `Data.List` without import lists * missing `CompatPrelude` file in `.cabal`
| * Update parsing to strip whitespace from table cells (#1074)Alina Banerjee2020-03-209-98/+102
| | | | | | | | | | | | | | | | | | | | * 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.8' into ghc-8.10Alec Theriault2020-03-2013-75/+332
| |\
| | * Fix build-failure regression for base < 4.7Herbert Valerio Riedel2019-12-086-30/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `$>` operator definition is available only since base-4.7 which unfortunately wasn't caught before release to Hackage (but has been fixed up by a metadata-revision) This commit introduces a `CompatPrelude` module which allows to reduce the amount of CPP by ousting it to a central location, i.e. the new `CompatPrelude` module. This pattern also tends to reduce the tricks needed to silence unused import warnings. Addresses #1119
| | * Document error-prone conditional definition of instancesHerbert Valerio Riedel2019-12-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This can easily trip up people if one isn't aware of it. Usually it's better to avoid this kind of conditionality especially for typeclasses for which there's an compat-package as conditional instances like these tend to fragment the ecosystem into those packages that go the extra mile to provide backward compat via those compat-packages and those that fail to do so.
| | * Fix Travis CI, loosen .cabal bounds (#1089)Alec Theriault2019-09-201-7/+9
| | | | | | | | | | | | | | | | | | | | | Tentatively for the 2.23 release: * updated Travis CI to work again * tweaked bounds in the `.cabal` files * adjusted `extra-source-files` to properly identify test files
| | * Release haddock-2.23, haddock-library-1.8.0Alec Theriault2019-05-262-6/+6
| | | | | | | | | | | | | | | Tentatively adjust bounds and changelogs for the release to be bundled with GHC 8.8.1.
| | * Remove outdated `.ghci` files and `scripts`Alec Theriault2019-05-131-1/+0
| | | | | | | | | | | | | | | The `.ghci` files are actively annoying when trying to `cabal v2-repl`. As for the `scripts`, the distribution workflow is completely different.
| | * Merge branch 'ghc-8.6' into ghc-8.8Alec Theriault2019-03-035-4/+50
| | |\
| | | * Make a fixture of weird parsing of lists (#997)Oleg Grenrus2019-02-045-1/+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.
| | | * Loosen 'QuickCheck' and 'hspec' boundsAlec Theriault2019-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | It looks like the new versions don't cause any breakage and loosening the bounds helps deps fit in one stack resolver.
| | * | Better identifier parsingAlec Theriault2019-02-255-61/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '(<|>)' and '`elem`' now get parsed and rendered properly as links * 'DbModule'/'DbUnitId' now properly get split apart into two links * tuple names now get parsed properly * some more small niceties... The identifier parsing code is more precise and more efficient (although to be fair: it is also longer and in its own module). On the rendering side, we need to pipe through information about backticks/parens/neither all the way through from renaming to the backends. In terms of impact: a total of 35 modules in the entirety of the bootlib + ghc lib docs change. The only "regression" is things like '\0'. These should be changed to @\\0@ (the path by which this previously worked seems accidental).
| | * | Support value/type namespaces on identifier linksAlec Theriault2019-02-253-8/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | | haddock: Bounds bumps for GHC 8.12Ben Gamari2020-06-131-2/+2
| | | |
* | | | Noramlize `tested-with` fields in cabal filesJohn Ericson2020-02-101-0/+2
| | | |
* | | | Version bumps for GHC 8.11Ben Gamari2019-11-141-1/+1
|/ / /