packages feed

resourcet 0.4.1 → 0.4.2

raw patch · 2 files changed

+16/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Control.Monad.Trans.Resource: runException :: ExceptionT Identity a -> Either SomeException a
+ Control.Monad.Trans.Resource: runException_ :: ExceptionT Identity a -> a

Files

Control/Monad/Trans/Resource.hs view
@@ -30,6 +30,8 @@       -- * A specific Exception transformer     , ExceptionT (..)     , runExceptionT_+    , runException+    , runException_       -- * Registering/releasing     , allocate     , register@@ -105,7 +107,7 @@  import qualified Control.Monad.ST.Lazy as Lazy -import Data.Functor.Identity (Identity)+import Data.Functor.Identity (Identity, runIdentity)  -- | A lookup key for a specific release action. This value is returned by -- 'register' and 'allocate', and is passed to 'release'.@@ -421,6 +423,18 @@ -- Since 0.3.0 runExceptionT_ :: Monad m => ExceptionT m a -> m a runExceptionT_ = liftM (either E.throw id) . runExceptionT++-- | Run an @ExceptionT Identity@ stack.+--+-- Since 0.4.2+runException :: ExceptionT Identity a -> Either SomeException a+runException = runIdentity . runExceptionT++-- | Run an @ExceptionT Identity@ stack, but immediately 'E.throw' any exception returned.+--+-- Since 0.4.2+runException_ :: ExceptionT Identity a -> a+runException_ = runIdentity . runExceptionT_  instance Monad m => Functor (ExceptionT m) where     fmap f = ExceptionT . (liftM . fmap) f . runExceptionT
resourcet.cabal view
@@ -1,5 +1,5 @@ Name:                resourcet-Version:             0.4.1+Version:             0.4.2 Synopsis:            Deterministic allocation and freeing of scarce resources. Description: 	This package was originally included with the conduit package, and has since been split off. For more information, please see <http://www.yesodweb.com/book/conduits>.