diff options
author | Ian Lynagh <igloo@earth.li> | 2009-07-05 17:17:59 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-07-05 17:17:59 +0000 |
commit | 99826c0fd307aa2690ef00be94e4f392fb73e155 (patch) | |
tree | f900095bf24e3cad7b099ba6b48be08037a1ebca /src/Haddock/Interface.hs | |
parent | 8c73c6d1a729d353bd78f1751328212ad7f8e585 (diff) |
Fix warnings
Diffstat (limited to 'src/Haddock/Interface.hs')
-rw-r--r-- | src/Haddock/Interface.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Haddock/Interface.hs b/src/Haddock/Interface.hs index d0106347..ffb9ebaf 100644 --- a/src/Haddock/Interface.hs +++ b/src/Haddock/Interface.hs @@ -102,7 +102,7 @@ createInterfaces' verbosity modules flags instIfaceMap = do modgraph' <- if needsTemplateHaskell modgraph then do dflags <- getSessionDynFlags - setSessionDynFlags dflags { hscTarget = HscC } + _ <- setSessionDynFlags dflags { hscTarget = HscC } -- we need to set HscC on all the ModSummaries as well let addHscC m = m { ms_hspp_opts = (ms_hspp_opts m) { hscTarget = HscC } } return (map addHscC modgraph) @@ -186,8 +186,8 @@ processModule verbosity modsum flags modMap instIfaceMap = do out verbosity verbose "Creating interface..." let (interface, msg) = runWriter $ createInterface ghcMod flags modMap instIfaceMap liftIO $ mapM_ putStrLn msg - liftIO $ evaluate interface - return (Just interface) + interface' <- liftIO $ evaluate interface + return (Just interface') else return Nothing #else |