classy-prelude 0.8.3 → 0.8.3.1
raw patch · 2 files changed
+10/−4 lines, 2 filesdep +stmdep −stm-lifted
Dependencies added: stm
Dependencies removed: stm-lifted
Files
- ClassyPrelude.hs +8/−2
- classy-prelude.cabal +2/−2
ClassyPrelude.hs view
@@ -15,7 +15,8 @@ , module Control.Monad -- ** Mutable references , module Control.Concurrent.MVar.Lifted- , module Control.Concurrent.STM.Lifted+ , module Control.Concurrent.STM+ , atomically , module Data.IORef.Lifted -- ** Debugging , trace@@ -131,7 +132,8 @@ import Control.Exception.Enclosed import Control.Monad (when, unless, void, liftM, ap, forever, join, sequence, sequence_, replicateM_) import Control.Concurrent.MVar.Lifted-import Control.Concurrent.STM.Lifted+import Control.Concurrent.STM hiding (atomically)+import qualified Control.Concurrent.STM as STM import Data.IORef.Lifted import qualified Data.Monoid as Monoid import qualified Data.Traversable as Traversable@@ -456,3 +458,7 @@ elem_by :: (a -> a -> Bool) -> a -> [a] -> Bool elem_by _ _ [] = False elem_by eq y (x:xs) = y `eq` x || elem_by eq y xs++-- | Generalized version of 'STM.atomically'.+atomically :: MonadIO m => STM a -> m a+atomically = liftIO . STM.atomically
classy-prelude.cabal view
@@ -1,5 +1,5 @@ name: classy-prelude-version: 0.8.3+version: 0.8.3.1 synopsis: A typeclass-based Prelude. description: Focuses on using common typeclasses when possible, and creating new ones to avoid name clashing. Exposes many recommended datastructures (Map, ByteString, etc) directly without requiring long import lists and qualified modules. homepage: https://github.com/snoyberg/classy-prelude@@ -32,7 +32,7 @@ , chunked-data , enclosed-exceptions , ghc-prim- , stm-lifted+ , stm ghc-options: -Wall -fno-warn-orphans test-suite test