packages feed

hint 0.3.2.2 → 0.3.2.3

raw patch · 3 files changed

+6/−12 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Changes view
@@ -1,4 +1,7 @@--ver 0.3.2.2+- ver 0.3.2.3+ * Can be built against MonadCatchIO-mtl-0.3.x.x++- ver 0.3.2.2  * Fixed a bug that would make expressions using heavy use of the layout    rule to fail to be interpreted (see parens) 
hint.cabal view
@@ -1,5 +1,5 @@ name:                hint-version:             0.3.2.2+version:             0.3.2.3 description:         This library defines an @Interpreter@ monad. It allows to load Haskell         modules, browse them, type-check and evaluate strings with Haskell
src/Hint/Base.hs view
@@ -1,7 +1,7 @@ module Hint.Base (     MonadInterpreter(..), RunGhc,     ---    GhcError(..), InterpreterError(..), finally, mayFail,+    GhcError(..), InterpreterError(..), mayFail,     --     InterpreterSession, SessionData(..), GhcErrLogger,     InterpreterState(..), fromState, onState,@@ -204,15 +204,6 @@             (Just a, True)  -> return a             (Just _, False) -> fail $ "GHC returned a result but said: " ++                                       show es--finally :: MonadInterpreter m => m a -> m () -> m a-finally action clean_up = do r <- protected_action-                             clean_up-                             return r-    where protected_action = action-                             `catchError`-                             (\e -> do clean_up `catchError` (\_ -> return ())-                                       throwError e)  -- ================ Misc ===================================