From 1cbb658fcbde206c281cfbc117101af47356b2e5 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Sun, 17 Jan 2016 21:26:48 +0100 Subject: Fix GHC 8.0 errors --- Distribution/Helper.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Distribution') diff --git a/Distribution/Helper.hs b/Distribution/Helper.hs index 729586b..a847567 100644 --- a/Distribution/Helper.hs +++ b/Distribution/Helper.hs @@ -416,7 +416,7 @@ findLibexecExe :: String -> IO FilePath findLibexecExe "cabal-helper-wrapper" = do libexecdir <- getLibexecDir let exeName = "cabal-helper-wrapper" - exe = libexecdir exeName <.> exeExtension + exe = libexecdir exeName <.> exeExtension' exists <- doesFileExist exe @@ -476,3 +476,6 @@ getExecutablePath' = lookupEnv' :: String -> IO (Maybe String) lookupEnv' k = lookup k <$> getEnvironment + +exeExtension' :: FilePath +exeExtension' = Distribution.Simple.BuildPaths.exeExtension -- cgit v1.2.3