which-0.1.0.0: Determine the full path to an executable.

Safe HaskellNone
LanguageHaskell2010

System.Which

Synopsis

Documentation

which :: FilePath -> IO (Maybe FilePath) Source #

Determine which executable would run if the given path were executed, or return Nothing if a suitable executable cannot be found

staticWhich :: FilePath -> Q Exp Source #

Run which at compile time, and substitute the full path to the executable.

This is useful in NixOS to ensure that the resulting executable contains the dependency in its closure and that it refers to the same version at run time as at compile time