Skip to content

`findExecutable "ghc-9.10.1" behaves surprisingly on windows #188

Open
@hasufell

Description

ghci> findExecutable "ghc-9.10.1"
Nothing
ghci> findExecutable "ghc-9.10.1.exe"
Just "C:\\ghcup\\bin\\ghc-9.10.1.exe"

This is because "ghc-9.10.1" is considered to contain a file extension. The documentation on SearchPathW states under lpExtension:

The extension to be added to the file name when searching for the file. The first character of the file name extension must be a period (.). The extension is added only if the specified file name does not end with an extension.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions