packages feed

classy-prelude 0.8.2 → 0.8.3

raw patch · 2 files changed

+13/−2 lines, 2 filesdep +stm-lifteddep ~basic-prelude

Dependencies added: stm-lifted

Dependency ranges changed: basic-prelude

Files

ClassyPrelude.hs view
@@ -15,6 +15,7 @@     , module Control.Monad       -- ** Mutable references     , module Control.Concurrent.MVar.Lifted+    , module Control.Concurrent.STM.Lifted     , module Data.IORef.Lifted       -- ** Debugging     , trace@@ -116,8 +117,10 @@     , asLText     , asList     , asMap+    , asIntMap     , asMaybe     , asSet+    , asIntSet     , asVector     , asUVector     , asSVector@@ -128,6 +131,7 @@ 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 Data.IORef.Lifted import qualified Data.Monoid as Monoid import qualified Data.Traversable as Traversable@@ -301,11 +305,17 @@ asMap :: Map k v -> Map k v asMap = id +asIntMap :: IntMap v -> IntMap v+asIntMap = id+ asMaybe :: Maybe a -> Maybe a asMaybe = id  asSet :: Set a -> Set a asSet = id++asIntSet :: IntSet -> IntSet+asIntSet = id  asVector :: Vector a -> Vector a asVector = id
classy-prelude.cabal view
@@ -1,5 +1,5 @@ name:                classy-prelude-version:             0.8.2+version:             0.8.3 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@@ -14,7 +14,7 @@ library   exposed-modules:     ClassyPrelude   build-depends:       base                          >= 4          && < 5-                     , basic-prelude                 >= 0.3.7      && < 0.4+                     , basic-prelude                 >= 0.3.8      && < 0.4                      , system-filepath               >= 0.4        && < 0.5                      , transformers                      , containers                    >= 0.4.2@@ -32,6 +32,7 @@                      , chunked-data                      , enclosed-exceptions                      , ghc-prim+                     , stm-lifted   ghc-options:         -Wall -fno-warn-orphans  test-suite test