Skip to content
  • Daniel Gröber (dxld)'s avatar
    0ad0ac0b
    Fix dropExeExtension on Windows (#6287) · 0ad0ac0b
    Daniel Gröber (dxld) authored
    On Windows dropExeExtension doesn't actually drop the exe extension.
    
    We have
    
        splitExtension "foo.exe" == ("foo", ".exe")
    
    but the code is expecting just "exe" for the extension field.
    
    Among other things this makes guessToolFromGhcPath behave
    unexpectedly. Since takeVersionSuffix can't see past the extension the
    `null suf` case in mkGuesses will trigger which causes the versioned
    program path candidates to not be looked for.
    0ad0ac0b
    Fix dropExeExtension on Windows (#6287)
    Daniel Gröber (dxld) authored
    On Windows dropExeExtension doesn't actually drop the exe extension.
    
    We have
    
        splitExtension "foo.exe" == ("foo", ".exe")
    
    but the code is expecting just "exe" for the extension field.
    
    Among other things this makes guessToolFromGhcPath behave
    unexpectedly. Since takeVersionSuffix can't see past the extension the
    `null suf` case in mkGuesses will trigger which causes the versioned
    program path candidates to not be looked for.
Loading