diff options
Diffstat (limited to 'hadrian/src/Context.hs')
-rw-r--r-- | hadrian/src/Context.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/src/Context.hs b/hadrian/src/Context.hs index ae1f329973..81bff8a11f 100644 --- a/hadrian/src/Context.hs +++ b/hadrian/src/Context.hs @@ -88,8 +88,8 @@ pkgSetupConfigFile context = contextPath context <&> (-/- "setup-config") pkgHaddockFile :: Context -> Action FilePath pkgHaddockFile Context {..} = do root <- buildRoot - let name = pkgName package - return $ root -/- "docs/html/libraries" -/- name -/- name <.> "haddock" + version <- pkgIdentifier package + return $ root -/- "docs/html/libraries" -/- version -/- pkgName package <.> "haddock" -- | Path to the registered ghc-pkg library file of a given 'Context', e.g.: -- @_build/stage1/lib/x86_64-linux-ghc-8.9.0/libHSarray-0.5.1.0-ghc8.9.0.so@ |