<feed xmlns='http://www.w3.org/2005/Atom'>
<title>haddock.git/haddock-api/src/Haddock/Backends, branch ghc-9.4</title>
<subtitle>Haddock with an org backend (haddorg).
</subtitle>
<id>https://g.ypei.me/haddock.git/atom?h=ghc-9.4</id>
<link rel='self' href='https://g.ypei.me/haddock.git/atom?h=ghc-9.4'/>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/'/>
<updated>2022-07-21T02:27:19+00:00</updated>
<entry>
<title>Merge remote-tracking branch 'upstream/ghc-9.4' into ghc-9.4</title>
<updated>2022-07-21T02:27:19+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-07-21T02:27:19+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=32ac0f03b4259fc8eebba9bb3a2a46d23122a43b'/>
<id>urn:sha1:32ac0f03b4259fc8eebba9bb3a2a46d23122a43b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Preparing for publication.</title>
<updated>2022-07-18T08:09:23+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-07-18T05:40:47+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=131e3b41d6128d2e4b66be8582ae60ccd6380994'/>
<id>urn:sha1:131e3b41d6128d2e4b66be8582ae60ccd6380994</id>
<content type='text'>
- license
- cabal
- readme
</content>
</entry>
<entry>
<title>a hole in fieldocc</title>
<updated>2022-07-18T08:09:23+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-07-18T02:40:25+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=c8b9b18d5f5ce9816d3e06aa5f90665fcdfa83cb'/>
<id>urn:sha1:c8b9b18d5f5ce9816d3e06aa5f90665fcdfa83cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>removing hackage url for ids</title>
<updated>2022-07-18T08:09:23+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-07-18T02:38:03+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=d64bbb227fcf357ba496928c70cd0b91244bcae8'/>
<id>urn:sha1:d64bbb227fcf357ba496928c70cd0b91244bcae8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adding hackage url to top level decl properties</title>
<updated>2022-07-18T08:09:23+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-07-18T02:29:27+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=dd392e27526983833359d3ea5bf2b0b60236e991'/>
<id>urn:sha1:dd392e27526983833359d3ea5bf2b0b60236e991</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adding org backend.</title>
<updated>2022-07-18T08:08:00+00:00</updated>
<author>
<name>Yuchen Pei</name>
<email>hi@ypei.me</email>
</author>
<published>2022-07-18T08:08:00+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=1713efee8a913784e93746c4a339b2641a24df51'/>
<id>urn:sha1:1713efee8a913784e93746c4a339b2641a24df51</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix #783 Don't show button if --quickjump not present</title>
<updated>2022-06-12T20:57:19+00:00</updated>
<author>
<name>Mike Pilgrem</name>
<email>mpilgrem@users.noreply.github.com</email>
</author>
<published>2019-11-13T21:43:03+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=3ab18cf06ae9392eab1349675dab8a177f1412da'/>
<id>urn:sha1:3ab18cf06ae9392eab1349675dab8a177f1412da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Render module tree per package in the content page (#1492)</title>
<updated>2022-06-07T06:09:40+00:00</updated>
<author>
<name>Marcin Szamotulski</name>
<email>coot@coot.me</email>
</author>
<published>2022-06-07T06:09:40+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=c5a83df91b97f85d995599c5ae7beacabe2ff040'/>
<id>urn:sha1:c5a83df91b97f85d995599c5ae7beacabe2ff040</id>
<content type='text'>
* Render module tree per package in the content page

When rendering content page for multiple packages it is useful to split
the module tree per package.  Package names in this patch are inferred
from haddock's interface file names.

* Write PackageInfo into interface file

To keep interface file format backward compatible, instead of using
`Binary` instance for `InterfaceFile` we introduce functions to
serialise and deserialise, which depends on the interface file version.</content>
</entry>
<entry>
<title>Check if doc-index.json exists before reading it (#1488)</title>
<updated>2022-05-24T06:29:59+00:00</updated>
<author>
<name>Marcin Szamotulski</name>
<email>coot@coot.me</email>
</author>
<published>2022-05-24T06:29:59+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=041385bc43f0b99d26077787eb8ed9e394766438'/>
<id>urn:sha1:041385bc43f0b99d26077787eb8ed9e394766438</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix hyperlinks to external items and modules (#1482)</title>
<updated>2022-05-07T15:42:08+00:00</updated>
<author>
<name>Jade Lovelace</name>
<email>software@lfcode.ca</email>
</author>
<published>2022-05-07T15:42:08+00:00</published>
<link rel='alternate' type='text/html' href='https://g.ypei.me/haddock.git/commit/?id=ab53ccf089ea703b767581ac14be0f6c78a7678a'/>
<id>urn:sha1:ab53ccf089ea703b767581ac14be0f6c78a7678a</id>
<content type='text'>
Fixes #1481.

There were two bugs in this:
* We were assuming that we were always getting a relative path to the
  module in question, while Nix gives us file:// URLs sometimes. This
  change checks for those and stops prepending `..` to them.
* We were not linking to the file under the module. This seems
  to have been a regression introduced by #977. That is, the URLs were
  going to something like
  file:///nix/store/3bwbsy0llxxn1pixx3ll02alln56ivxy-ghc-9.0.2-doc/share/doc/ghc/html/libraries/base-4.15.1.0/src
  which does not have the appropriate HTML file or fragment for the item
  in question at the end.

There is a remaining instance of the latter bug, but not in the
hyperlinker: the source links to items reexported from other modules are
also not including the correct file name. e.g. the reexport of Entity in
esqueleto, from persistent.

NOTE: This needs to get tested with relative-path located modules. It seems
correct for Nix based on my testing.

Testing strategy:

```
nix-shell '&lt;nixpkgs&gt;' --pure -A haskell.packages.ghc922.aeson
mkdir /tmp/aesonbuild &amp;&amp; cd /tmp/aesonbuild
export out=/tmp/aesonbuild/out
genericBuild

ln -sf $HOME/co/haddock/haddock-api/resources .
./Setup haddock --with-haddock=$HOME/path/to/haddock/exec --hyperlink-source
```</content>
</entry>
</feed>
