From ef371a7ebf3a1a69e6cd68adecec70fd19ec3d8a Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Mon, 6 Oct 2014 15:29:05 +0900 Subject: [PATCH] fixing tests. --- Language/Haskell/GhcMod/Utils.hs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Language/Haskell/GhcMod/Utils.hs b/Language/Haskell/GhcMod/Utils.hs index 4ae27bc..d66a7e9 100644 --- a/Language/Haskell/GhcMod/Utils.hs +++ b/Language/Haskell/GhcMod/Utils.hs @@ -55,11 +55,6 @@ ghcModExecutable :: IO FilePath ghcModExecutable = do dir <- getExecutablePath' return $ dir "ghc-mod" -#else -ghcModExecutable = do _ <- getExecutablePath' -- get rid of unused warning when - -- compiling spec - return "dist/build/ghc-mod/ghc-mod" -#endif where getExecutablePath' :: IO FilePath # if __GLASGOW_HASKELL__ >= 706 @@ -67,3 +62,6 @@ ghcModExecutable = do _ <- getExecutablePath' -- get rid of unused warning when # else getExecutablePath' = return "" # endif +#else +ghcModExecutable = return "dist/build/ghc-mod/ghc-mod" +#endif