From 0d894b3dc7883da2a23b7ffaa0a682b3ad5adfd0 Mon Sep 17 00:00:00 2001 From: David Waern Date: Wed, 11 Jul 2007 21:52:38 +0000 Subject: Follow changes to the GHC API --- src/Main.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Main.hs b/src/Main.hs index 9f7ff25f..2e5610d5 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -325,7 +325,7 @@ sortAndCheckModules session files = do modsum <- sortedModules, modSumFile modsum `elem` files ] checkedMods <- mapM (\(mod, file) -> do - mbMod <- checkModule session (moduleName mod) + mbMod <- checkModule session (moduleName mod) False checkedMod <- case mbMod of Just m -> return m Nothing -> throwE ("Failed to load module: " ++ moduleString mod) @@ -336,7 +336,7 @@ sortAndCheckModules session files = do | length modules' == length modules = return modules' | otherwise = throwE "Failed to check all modules properly" where modules' = [ (mod, f, (a,b,c,d)) | - (mod, f, CheckedModule a (Just b) (Just c) (Just d)) + (mod, f, CheckedModule a (Just b) (Just c) (Just d) _) <- modules ] run :: [Flag] -> [CheckedMod] -> Map Name Name -> IO () -- cgit v1.2.3