Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Fix lint error on doesFileExist 'config.mk'.
Browse files Browse the repository at this point in the history
  • Loading branch information
snowleopard committed Jan 16, 2016
1 parent c9ec473 commit f63e9db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Rules/Gmp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module Rules.Gmp (
gmpRules, gmpBuildPath, gmpObjects, gmpLibraryH, gmpDependencies
) where

import qualified System.Directory as IO

import Base
import Expression
import GHC
Expand Down Expand Up @@ -80,7 +82,7 @@ gmpRules = do
-- twice -- think how this can be optimised (shall we solve #18 first?)
-- TODO: this is a hacky optimisation: we do not rerun configure of
-- integerGmp package if we detect the results of the previous run
unlessM (doesFileExist $ gmpBase -/- "config.mk") $ do
unlessM (liftIO . IO.doesFileExist $ gmpBase -/- "config.mk") $ do
args <- configureIntGmpArguments
runConfigure (pkgPath integerGmp) envs args

Expand Down

0 comments on commit f63e9db

Please sign in to comment.