fixing tests.
This commit is contained in:
parent
44ed695535
commit
ef371a7ebf
@ -55,11 +55,6 @@ ghcModExecutable :: IO FilePath
|
|||||||
ghcModExecutable = do
|
ghcModExecutable = do
|
||||||
dir <- getExecutablePath'
|
dir <- getExecutablePath'
|
||||||
return $ dir </> "ghc-mod"
|
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
|
where
|
||||||
getExecutablePath' :: IO FilePath
|
getExecutablePath' :: IO FilePath
|
||||||
# if __GLASGOW_HASKELL__ >= 706
|
# if __GLASGOW_HASKELL__ >= 706
|
||||||
@ -67,3 +62,6 @@ ghcModExecutable = do _ <- getExecutablePath' -- get rid of unused warning when
|
|||||||
# else
|
# else
|
||||||
getExecutablePath' = return ""
|
getExecutablePath' = return ""
|
||||||
# endif
|
# endif
|
||||||
|
#else
|
||||||
|
ghcModExecutable = return "dist/build/ghc-mod/ghc-mod"
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user