packages feed

dejafu 1.1.0.0 → 1.1.0.1

raw patch · 3 files changed

+26/−3 lines, 3 filesdep ~exceptions

Dependency ranges changed: exceptions

Files

CHANGELOG.rst view
@@ -7,6 +7,20 @@ .. _PVP: https://pvp.haskell.org/  +1.1.0.1 (2018-02-26)+--------------------++* Git: :tag:`dejafu-1.1.0.1`+* Hackage: :hackage:`dejafu-1.1.0.1`++**Contributors:** :u:`qrilka` (:pull:`229`).++Miscellaneous+~~~~~~~~~~~~~++* The upper bound on :hackage:`exceptions` is <0.10.++ 1.1.0.0 (2018-02-22) -------------------- 
Test/DejaFu/Conc.hs view
@@ -132,6 +132,15 @@   mask                mb = toConc (AMasking MaskedInterruptible   (\f -> unC $ mb $ wrap f))   uninterruptibleMask mb = toConc (AMasking MaskedUninterruptible (\f -> unC $ mb $ wrap f)) +#if MIN_VERSION_exceptions(0,9,0)+  -- from https://github.com/fpco/stackage/issues/3315#issuecomment-368583481+  generalBracket acquire release cleanup use = mask $ \unmasked -> do+    resource <- acquire+    result <- unmasked (use resource) `catch` (\e -> cleanup resource e >> throwM e)+    _ <- release resource+    pure result+#endif+ instance Monad n => C.MonadConc (ConcT r n) where   type MVar     (ConcT r n) = MVar r   type CRef     (ConcT r n) = CRef r
dejafu.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                dejafu-version:             1.1.0.0+version:             1.1.0.1 synopsis:            A library for unit-testing concurrent programs.  description:@@ -33,7 +33,7 @@ source-repository this   type:     git   location: https://github.com/barrucadu/dejafu.git-  tag:      dejafu-1.1.0.0+  tag:      dejafu-1.1.0.1  library   exposed-modules:     Test.DejaFu@@ -60,7 +60,7 @@                      , concurrency       >=1.3 && <1.5                      , containers        >=0.5 && <0.6                      , deepseq           >=1.1 && <2-                     , exceptions        >=0.7 && <0.9+                     , exceptions        >=0.7 && <0.10                      , leancheck         >=0.6 && <0.8                      , profunctors       >=4.0 && <6.0                      , random            >=1.0 && <1.2