cvs commit: fptools/ghc/compiler/ghci InteractiveUI.hs

Simon Marlow simonmar@glass.cse.ogi.edu
Mon, 28 May 2001 05:56:36 -0700


simonmar    2001/05/28 05:56:35 PDT

  Modified files:
    ghc/compiler/ghci    InteractiveUI.hs 
  Log:
  Change the GHCi monad from type
  
  	GHCiState -> IO (GHCiState, a)
  to
  	IORef GHCiState -> IO a
  
  to avoid losing recent changes to the state when we receive an
  exception (which would normally be harmless, except that the state
  isn't purely functional: it must match some state kept by the RTS's
  dynamic linker).  Asynchonous exceptions could still cause us some
  difficulty.
  
  Revision  Changes    Path
  1.70      +15 -14    fptools/ghc/compiler/ghci/InteractiveUI.hs