Skip to content

Commit

Permalink
Haddock use relative paths in output (fixed #4971)
Browse files Browse the repository at this point in the history
  • Loading branch information
borsboom committed Jul 23, 2019
1 parent 5fe2909 commit f4f06b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Stack/Build/Haddock.hs
Expand Up @@ -229,8 +229,10 @@ generateHaddockIndex descr bco dumpPackages docRelFP destDir = do
docRelFP FP.</>
packageIdentifierString dpPackageIdent FP.</>
(packageNameString name FP.<.> "haddock")
docPathRelFP =
fmap ((docRelFP FP.</>) . FP.takeFileName) dpHaddockHtml
interfaces = intercalate "," $
maybeToList dpHaddockHtml ++ [srcInterfaceFP]
maybeToList docPathRelFP ++ [srcInterfaceFP]

destInterfaceAbsFile <- parseCollapsedAbsFile (toFilePath destDir FP.</> destInterfaceRelFP)
esrcInterfaceModTime <- tryGetModificationTime srcInterfaceAbsFile
Expand Down

0 comments on commit f4f06b6

Please sign in to comment.