[project @ 2001-05-28 12:56:35 by simonmar]
authorsimonmar <unknown>
Mon, 28 May 2001 12:56:35 +0000 (12:56 +0000)
committersimonmar <unknown>
Mon, 28 May 2001 12:56:35 +0000 (12:56 +0000)
commit15cf6d3b39e000dc125073df9f4ea000f77b8423
tree1815369f2d9a98d6d276a9af02071770650b8cb5
parent5a023eed3e24d1506ebd5a55caf0400073683122
[project @ 2001-05-28 12:56:35 by simonmar]
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.
ghc/compiler/ghci/InteractiveUI.hs