packages feed

haxl 0.3.0.0 → 0.3.1.0

raw patch · 2 files changed

+10/−4 lines, 2 filesdep +exceptionsdep ~HUnitdep ~aesondep ~basePVP ok

version bump matches the API change (PVP)

Dependencies added: exceptions

Dependency ranges changed: HUnit, aeson, base, vector

API changes (from Hackage documentation)

+ Haxl.Core.Monad: instance Control.Monad.Catch.MonadCatch (Haxl.Core.Monad.GenHaxl u)
+ Haxl.Core.Monad: instance Control.Monad.Catch.MonadThrow (Haxl.Core.Monad.GenHaxl u)

Files

Haxl/Core/Monad.hs view
@@ -47,6 +47,7 @@ import Haxl.Core.DataCache as DataCache  import qualified Data.Text as Text+import qualified Control.Monad.Catch as Catch import Control.Exception (Exception(..), SomeException) #if __GLASGOW_HASKELL__ >= 708 import Control.Exception (SomeAsyncException(..))@@ -317,6 +318,10 @@ try :: Exception e => GenHaxl u a -> GenHaxl u (Either e a) try haxl = (Right <$> haxl) `catch` (return . Left) +-- | @since 0.3.1.0+instance Catch.MonadThrow (GenHaxl u) where throwM = Haxl.Core.Monad.throw+-- | @since 0.3.1.0+instance Catch.MonadCatch (GenHaxl u) where catch = Haxl.Core.Monad.catch  -- ----------------------------------------------------------------------------- -- Unsafe operations
haxl.cabal view
@@ -1,5 +1,5 @@ name:                haxl-version:             0.3.0.0+version:             0.3.1.0 synopsis:            A Haskell library for efficient, concurrent,                      and concise data access. homepage:            https://github.com/facebook/Haxl@@ -38,20 +38,21 @@ library    build-depends:-    HUnit == 1.2.*,-    aeson >= 0.6 && < 0.9,+    HUnit >= 1.2 && < 1.4,+    aeson >= 0.6 && < 0.11,     base == 4.*,     bytestring >= 0.9 && < 0.11,     containers == 0.5.*,     deepseq,     directory >= 1.1 && < 1.3,+    exceptions >=0.8 && <0.9,     filepath >= 1.3 && < 1.5,     hashable == 1.2.*,     pretty == 1.1.*,     text >= 1.1.0.1 && < 1.3,     time >= 1.4 && < 1.6,     unordered-containers == 0.2.*,-    vector == 0.10.*+    vector >= 0.10 && <0.12    exposed-modules:     Haxl.Core,