• KevinBuhr's avatar
    Handle trailing path separator in package DB names (#16360) · 9d238791
    KevinBuhr authored
    Package DB directories with trailing separator (provided via
    GHC_PACKAGE_PATH or via -package-db) resulted in incorrect calculation of
    ${pkgroot} substitution variable.  Keep the trailing separator while
    resolving as directory or file, but remove it before dropping the last
    path component with takeDirectory.
    
    Closes #16360.
    9d238791
Code owners : Ben Gamari
Packages.hs 92.1 KB