Added conditional compilation so that yesod-bin/Devel.hs can pass travis-ci tests.

Signed-off-by: Njagi Mwaniki <mwanikibusiness@gmail.com>
This commit is contained in:
Njagi Mwaniki 2015-04-15 18:50:05 +03:00
parent c3a05d1f7b
commit 58a07b0ea3
No known key found for this signature in database
GPG Key ID: A03B60432BC5BB7D

View File

@ -507,7 +507,11 @@ lookupLdAr = do
lookupLdAr' :: IO (Maybe (FilePath, FilePath))
lookupLdAr' = do
#if MIN_VERSION_Cabal(1,22,0)
(_, _, pgmc) <- D.configCompilerEx (Just D.GHC) Nothing Nothing D.defaultProgramConfiguration D.silent
#else
(_, pgmc) <- D.configCompiler (Just D.GHC) Nothing Nothing D.defaultProgramConfiguration D.silent
#endif
pgmc' <- D.configureAllKnownPrograms D.silent pgmc
return $ (,) <$> look D.ldProgram pgmc' <*> look D.arProgram pgmc'
where