From 1d785987a518919c9d5f1f579f5eb206460b7d2f Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Mon, 16 Jan 2017 11:03:10 +0100 Subject: Copy over Setup.hs from ghc-mod --- Distribution/Helper.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Distribution') diff --git a/Distribution/Helper.hs b/Distribution/Helper.hs index b16e989..aa6042d 100644 --- a/Distribution/Helper.hs +++ b/Distribution/Helper.hs @@ -415,8 +415,7 @@ instance Show LibexecNotFoundError where findLibexecExe :: IO FilePath findLibexecExe = do libexecdir <- getLibexecDir - let Version (mj:mi:_) _ = version - exeName = "cabal-helper-wrapper-v" ++ show mj ++ "." ++ show mi + let exeName = "cabal-helper-wrapper" exe = libexecdir exeName <.> exeExtension' exists <- doesFileExist exe -- cgit v1.2.3