X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=ghc%2FGhciMonad.hs;h=fb76d4765abd2782d3302353c48f007932e2ef70;hp=ff34963b6347c06e48a84abd551947a9603cd4d5;hb=9d0c8f842e35dde3d570580cf62a32779f66a6de;hpb=ab1d5052de53479377c961d1e966f0cf0b82c592 diff --git a/ghc/GhciMonad.hs b/ghc/GhciMonad.hs index ff34963..fb76d47 100644 --- a/ghc/GhciMonad.hs +++ b/ghc/GhciMonad.hs @@ -262,7 +262,7 @@ setLogAction :: InputT GHCi () setLogAction = do encoder <- getEncoder dflags <- GHC.getSessionDynFlags - GHC.setSessionDynFlags dflags {log_action = logAction encoder} + _ <- GHC.setSessionDynFlags dflags {log_action = logAction encoder} return () where logAction encoder severity srcSpan style msg = case severity of @@ -369,9 +369,8 @@ initInterpBuffering = do -- make sure these are linked let f ref (Just ptr) = writeIORef ref ptr f _ Nothing = panic "interactiveUI:setBuffering2" - zipWithM f [stdin_ptr,stdout_ptr,stderr_ptr] - [mb_stdin_ptr,mb_stdout_ptr,mb_stderr_ptr] - return () + zipWithM_ f [stdin_ptr,stdout_ptr,stderr_ptr] + [mb_stdin_ptr,mb_stdout_ptr,mb_stderr_ptr] flushInterpBuffers :: GHCi () flushInterpBuffers