Index: ghc-8.6.1/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs =================================================================== --- ghc-8.6.1.orig/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs +++ ghc-8.6.1/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs @@ -204,7 +204,7 @@ defaultInstallDirs' False comp userInsta _other -> "$abi" "$libname", dynlibdir = "$libdir" case comp of UHC -> "$pkgid" - _other -> "$abi", + _other -> "$compiler" "$pkgkey", libexecsubdir= "$abi" "$pkgid", flibdir = "$libdir", libexecdir = case buildOS of