From 9d4e6c3d2411e418743787064da7d4696e7bcf3a Mon Sep 17 00:00:00 2001 From: Iku Iwasa Date: Sun, 19 Apr 2015 13:38:05 +0100 Subject: Make it able to find executable on Windows This adds Cabal dependency to cabal-helper library. --- Distribution/Helper.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Distribution/Helper.hs') diff --git a/Distribution/Helper.hs b/Distribution/Helper.hs index 6946465..323de0e 100644 --- a/Distribution/Helper.hs +++ b/Distribution/Helper.hs @@ -63,6 +63,7 @@ import Data.Monoid import Data.List import Data.Default import Data.Typeable +import Distribution.Simple.BuildPaths (exeExtension) import System.Environment import System.FilePath import System.Directory @@ -241,7 +242,7 @@ findLibexecExe :: String -> IO FilePath findLibexecExe "cabal-helper-wrapper" = do libexecdir <- getLibexecDir let exeName = "cabal-helper-wrapper" - exe = libexecdir exeName + exe = libexecdir exeName <.> exeExtension exists <- doesFileExist exe -- cgit v1.2.3