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

Port the remains of Hi-Haddock #1571

Closed
wants to merge 8 commits into from

Conversation

Kleidukos
Copy link
Member

No description provided.

@Kleidukos Kleidukos force-pushed the haddock-1566-hi-haddock branch 2 times, most recently from 84ebfc1 to d57fe45 Compare January 11, 2023 11:46
-- TODO: Determine how to use `load'` since GHC 9.4
load' noIfaceCache LoadAllTargets Nothing modGraph
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bgamari It's unclear to me how load' is supposed to be used since GHC 9.4. Could you perhaps help shed some light on its usage? The patch was originally written when load' had different arguments and I'm not sure the Nothing is a good value.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, Nothing should be fine here. This argument is intended for use by clients like GHCi which call load multiple times in succession.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay!

On my end I tracked the Data.Ix exception that occurs when running the tests to something happening inside of the GHC API (but I can't really afford to insert putStrLn statements all over the GHC API.

Is this something we could pair on? I'm quite certain there must be a better way to track the origin of such an exception. :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record, this issue was due to the fact that the Haddock interface file version was not bumped. This meant that Haddock attempted to deserialize interfaces from the bootstrap compiler, which were incompatible with those expected by this branch.

@bgamari
Copy link
Collaborator

bgamari commented Jan 23, 2023

@Kleidukos and I spent a few hours last week looking at this and nailed most of the correctness issues. What remains is to do some performance measurements to ensure that nothing has regressed horribly and do a final review of the changed testsuite results.

@@ -176,12 +151,12 @@ rename dflags gre = rn
-- 'GlobalReaderEnv' during 'rename') in an appropriate doc. Currently
-- we simply monospace the identifier in most cases except when the
-- identifier is qualified: if the identifier is qualified then we can
-- still try to guess and generate anchors across modules but the
-- still try to guess and generate anchors accross modules but the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

@Kleidukos Kleidukos closed this Jul 4, 2023
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.

4 participants