From 58a07b0ea3dbd5692c3c8d9c36603159bbf6aa46 Mon Sep 17 00:00:00 2001 From: Njagi Mwaniki Date: Wed, 15 Apr 2015 18:50:05 +0300 Subject: [PATCH] Added conditional compilation so that yesod-bin/Devel.hs can pass travis-ci tests. Signed-off-by: Njagi Mwaniki --- yesod-bin/Devel.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yesod-bin/Devel.hs b/yesod-bin/Devel.hs index ac4225b4..10ec5b4d 100644 --- a/yesod-bin/Devel.hs +++ b/yesod-bin/Devel.hs @@ -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