Put docs into versioned directory names; fixes trac #3532
[ghc-hetmet.git] / utils / ghc-cabal / ghc-cabal.hs
index ef4e989..b940a2d 100644 (file)
@@ -198,8 +198,8 @@ doInstall ghc ghcpkg strip topdir directory distDir
                             libsubdir = toPathTemplate "$pkgid",
                             docdir    = toPathTemplate $
                                             if relocatableBuild
-                                            then "$topdir/$pkg"
-                                            else (myDocdir </> "$pkg"),
+                                            then "$topdir/$pkgid"
+                                            else (myDocdir </> "$pkgid"),
                             htmldir   = toPathTemplate "$docdir"
                         }
                 progs = withPrograms lbi