lifted-base 0.2.3.6 → 0.2.3.7
raw patch · 12 files changed
+31/−27 lines, 12 filesdep ~HUnitdep ~criteriondep ~monad-peelPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: HUnit, criterion, monad-peel, transformers, transformers-compat
API changes (from Hackage documentation)
- Control.Concurrent.MVar.Lifted: modifyMVar :: MonadBaseControl IO m => MVar a -> (a -> m (a, b)) -> m b
+ Control.Concurrent.MVar.Lifted: modifyMVar :: (MonadBaseControl IO m) => MVar a -> (a -> m (a, b)) -> m b
- Control.Concurrent.MVar.Lifted: modifyMVarMasked :: MonadBaseControl IO m => MVar a -> (a -> m (a, b)) -> m b
+ Control.Concurrent.MVar.Lifted: modifyMVarMasked :: (MonadBaseControl IO m) => MVar a -> (a -> m (a, b)) -> m b
- Control.Concurrent.MVar.Lifted: modifyMVarMasked_ :: MonadBaseControl IO m => MVar a -> (a -> m a) -> m ()
+ Control.Concurrent.MVar.Lifted: modifyMVarMasked_ :: (MonadBaseControl IO m) => MVar a -> (a -> m a) -> m ()
- Control.Concurrent.MVar.Lifted: modifyMVar_ :: MonadBaseControl IO m => MVar a -> (a -> m a) -> m ()
+ Control.Concurrent.MVar.Lifted: modifyMVar_ :: (MonadBaseControl IO m) => MVar a -> (a -> m a) -> m ()
Files
- Control/Concurrent/Chan/Lifted.hs +1/−1
- Control/Concurrent/Lifted.hs +1/−1
- Control/Concurrent/MVar/Lifted.hs +1/−1
- Control/Concurrent/QSem/Lifted.hs +1/−1
- Control/Concurrent/QSemN/Lifted.hs +1/−1
- Control/Exception/Lifted.hs +1/−1
- Data/IORef/Lifted.hs +1/−1
- Foreign/Marshal/Utils/Lifted.hs +1/−1
- System/Timeout/Lifted.hs +1/−1
- bench/bench.hs +13/−9
- include/inlinable.h +2/−2
- lifted-base.cabal +7/−7
Control/Concurrent/Chan/Lifted.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE FlexibleContexts #-} #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif {- |
Control/Concurrent/Lifted.hs view
@@ -1,7 +1,7 @@ {-# LANGUAGE CPP, NoImplicitPrelude, FlexibleContexts, RankNTypes #-} #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif {- |
Control/Concurrent/MVar/Lifted.hs view
@@ -4,7 +4,7 @@ , TupleSections #-} #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif {- |
Control/Concurrent/QSem/Lifted.hs view
@@ -4,7 +4,7 @@ {-# LANGUAGE FlexibleContexts #-} #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif {- |
Control/Concurrent/QSemN/Lifted.hs view
@@ -4,7 +4,7 @@ {-# LANGUAGE FlexibleContexts #-} #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif {- |
Control/Exception/Lifted.hs view
@@ -8,7 +8,7 @@ #endif #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif {- |
Data/IORef/Lifted.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE FlexibleContexts #-} #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif {- |
Foreign/Marshal/Utils/Lifted.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE FlexibleContexts #-} #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif {- |
System/Timeout/Lifted.hs view
@@ -1,7 +1,7 @@ {-# LANGUAGE CPP, NoImplicitPrelude, FlexibleContexts #-} #if __GLASGOW_HASKELL__ >= 702-{-# LANGUAGE Trustworthy #-}+{-# LANGUAGE Safe #-} #endif -------------------------------------------------------------------------------
bench/bench.hs view
@@ -45,24 +45,28 @@ , b "bracket_" benchBracket_ MP.bracket_ MC.bracket_ , b "catch" benchCatch MP.catch MC.catch , b "try" benchTry MP.try MC.try- , b "mask" benchMask mpMask MC.mask + , bgroup "mask"+ [ bench "monad-peel" $ whnfIO $ benchMask mpMask+ , bench "monad-control" $ whnfIO $ benchMask MC.mask+ ]+ , bgroup "liftIOOp"- [ bench "monad-peel" $ exe $ MP.liftIOOp (E.bracket nop (\_ -> nop))- (\_ -> nop)- , bench "monad-control" $ exe $ MC.liftBaseOp (E.bracket nop (\_ -> nop))- (\_ -> nop)+ [ bench "monad-peel" $ whnfIO $ exe $ MP.liftIOOp (E.bracket nop (\_ -> nop))+ (\_ -> nop)+ , bench "monad-control" $ whnfIO $ exe $ MC.liftBaseOp (E.bracket nop (\_ -> nop))+ (\_ -> nop) ] , bgroup "liftIOOp_"- [ bench "monad-peel" $ exe $ MP.liftIOOp_ (E.bracket_ nop nop) nop- , bench "monad-control" $ exe $ MC.liftBaseOp_ (E.bracket_ nop nop) nop+ [ bench "monad-peel" $ whnfIO $ exe $ MP.liftIOOp_ (E.bracket_ nop nop) nop+ , bench "monad-control" $ whnfIO $ exe $ MC.liftBaseOp_ (E.bracket_ nop nop) nop ] ] b name bnch peel mndCtrl = bgroup name- [ bench "monad-peel" $ bnch peel- , bench "monad-control" $ bnch mndCtrl+ [ bench "monad-peel" $ whnfIO $ bnch peel+ , bench "monad-control" $ whnfIO $ bnch mndCtrl ] --------------------------------------------------------------------------------
include/inlinable.h view
@@ -1,3 +1,3 @@-#if __GLASCOW_HASKELL__ < 700-#define INLINABLE INLINE +#if __GLASGOW_HASKELL__ < 700+#define INLINABLE INLINE #endif
lifted-base.cabal view
@@ -1,5 +1,5 @@ Name: lifted-base-Version: 0.2.3.6+Version: 0.2.3.7 Synopsis: lifted IO operations from the base library License: BSD3 License-file: LICENSE@@ -65,11 +65,11 @@ build-depends: lifted-base , base >= 3 && < 5- , transformers >= 0.3 && < 0.5+ , transformers >= 0.3 && < 0.6 , transformers-base >= 0.4.4 && < 0.5- , transformers-compat >= 0.3 && < 0.5+ , transformers-compat >= 0.3 && < 0.6 , monad-control >= 1.0.0.3 && < 1.1- , HUnit >= 1.2.2 && < 1.3+ , HUnit >= 1.2.2 && < 1.4 , test-framework >= 0.2.4 && < 0.9 , test-framework-hunit >= 0.2.4 && < 0.4 @@ -89,7 +89,7 @@ build-depends: lifted-base , base >= 3 && < 5- , transformers >= 0.2 && < 0.5- , criterion >= 0.5 && < 0.9+ , transformers >= 0.2 && < 0.6+ , criterion >= 1 && < 1.2 , monad-control >= 0.3 && < 1.1- , monad-peel >= 0.1 && < 0.2+ , monad-peel >= 0.1 && < 0.3