-
Notifications
You must be signed in to change notification settings - Fork 710
haddock/hscolour: fix highlighted source location #3452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Oops, seems like this still has a small bug. Please don't merge yet. |
Fixed, should be ready to merge now. |
@bennofs Apparently, this breaks the test suite. Can you look into that? |
@@ -48,12 +49,18 @@ import System.FilePath ((</>), (<.>)) | |||
srcPref :: FilePath -> FilePath | |||
srcPref distPref = distPref </> "src" | |||
|
|||
hscolourPref :: FilePath -> PackageDescription -> FilePath | |||
data PathMode = ForDistribution | ForDevelopment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a Haddock comment.
If |
Alright, that is a good idea. I'll do that. |
When generating haddocks with the `--for-hackage` switch, the generated haddocks are placed in a different directory than the normal ones, which includes the package id instead of just the package name. When we ran hscolour, we didn't respect this, so the highlighted source would not be placed in the correct directory and thus was missing from the tarball. This patch fixes that. Fixes haskell#3451
Finally got around to finish this up. Should be ready now. |
Merged, thanks! |
Backport #3452 to the 1.24 branch
When generating haddocks with the
--for-hackage
switch, the generatedhaddocks are placed in a different directory than the normal ones, which
includes the package id instead of just the package name. When we ran
hscolour, we didn't respect this, so the highlighted source would not
be placed in the correct directory and thus was missing from the tarball.
This patch fixes that.
Fixes #3451