Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Fix typo in comma-first export list #1112

Closed
wants to merge 1 commit into from

Conversation

wygulmage
Copy link

As far as I can tell, putting a comma before the first item in an export list (module M ( , a, b, c) where) is not legal Haskell. And Haddock chokes on headings before the opening parenthesis of the export list.

As far as I can tell, putting a comma before the first item in an export list  ('module M ( , a, b, c) where') is not legal Haskell. And Haddock chokes on headings before the opening parenthesis of the export list.
mattaudesse added a commit to mattaudesse/haddock that referenced this pull request Nov 16, 2019
Note: I noticed some overlap with haskell#1112 from @wygulmage and haskell#1081 from
@parsonsmatt after creating these proposed changes - mea culpa for not
looking at the open PRs sooner.
harpocrates pushed a commit that referenced this pull request Mar 23, 2020
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.
@harpocrates
Copy link
Collaborator

Fixed in 89ec565.

@wygulmage wygulmage deleted the patch-1 branch April 28, 2020 12:16
alexbiehl pushed a commit that referenced this pull request Dec 8, 2020
* 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 <[email protected]>
Co-authored-by: Mike Pilgrem <[email protected]>
Co-authored-by: Guillaume Bouchard <[email protected]>
Co-authored-by: Pepe Iborra <[email protected]>
hubot pushed a commit to ghc/ghc that referenced this pull request May 17, 2024
* Fix multiple typos and inconsistencies in doc/markup.rst

Note: I noticed some overlap with haskell/haddock#1112 from @wygulmage and haskell/haddock#1081 from
@parsonsmatt after creating these proposed changes - mea culpa for not
looking at the open PRs sooner.

* Fix haskell/haddock#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 <[email protected]>
Co-authored-by: Mike Pilgrem <[email protected]>
Co-authored-by: Guillaume Bouchard <[email protected]>
Co-authored-by: Pepe Iborra <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants