packages feed

basic-prelude 0.5.0 → 0.5.1

raw patch · 4 files changed

+10/−3 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ BasicPrelude: length :: Foldable t => t a -> Int
+ BasicPrelude: null :: Foldable t => t a -> Bool
+ CorePrelude: asum :: (Foldable t, Alternative f) => t (f a) -> f a
+ CorePrelude: displayException :: Exception e => e -> String
- BasicPrelude: elem :: (Foldable t, Eq a) => a -> t a -> Bool
+ BasicPrelude: elem :: Foldable t => forall a. Eq a => a -> t a -> Bool
- BasicPrelude: map :: Functor f => (a -> b) -> f a -> f b
+ BasicPrelude: map :: (Functor f) => (a -> b) -> f a -> f b
- BasicPrelude: maximum :: (Foldable t, Ord a) => t a -> a
+ BasicPrelude: maximum :: Foldable t => forall a. Ord a => t a -> a
- BasicPrelude: minimum :: (Foldable t, Ord a) => t a -> a
+ BasicPrelude: minimum :: Foldable t => forall a. Ord a => t a -> a
- CorePrelude: class Monad (m :: * -> *)
+ CorePrelude: class Applicative m => Monad (m :: * -> *)

Files

BasicPrelude.hs view
@@ -156,6 +156,7 @@ -- | > empty = mempty empty :: Monoid w => w empty = mempty+{-# DEPRECATED empty "Use mempty" #-}  infixr 5 ++ @@ -197,7 +198,7 @@  -- | The readIO function is similar to read -- except that it signals parse failure to the IO monad--- instead of terminating the program. +-- instead of terminating the program. readIO :: Read a => Text -> IO a readIO = Prelude.readIO . Text.unpack 
ChangeLog.md view
@@ -1,3 +1,8 @@+## 0.5.1++* Expose `asum`+* Deprecate `empty` (so it can be replaced with `Alternative`'s `empty`)+ ## 0.5.0  * Expose more Foldable/Traversable stuff
CorePrelude.hs view
@@ -103,6 +103,7 @@     , (<>)       -- ** Folds and traversals     , Data.Foldable.Foldable+    , Data.Foldable.asum     , Data.Traversable.Traversable       -- ** arrow     , Control.Arrow.first
basic-prelude.cabal view
@@ -1,5 +1,5 @@ name:                basic-prelude-version:             0.5.0+version:             0.5.1 synopsis:            An enhanced core prelude; a common foundation for alternate preludes. description:     The premise of @basic-prelude@ is that there are a lot of very commonly desired features missing from the standard @Prelude@, such as commonly used operators (@\<$\>@ and @>=>@, for instance) and imports for common datatypes (e.g., @ByteString@ and @Vector@). At the same time, there are lots of other components which are more debatable, such as providing polymorphic versions of common functions.@@ -21,7 +21,7 @@  library   exposed-modules:     BasicPrelude, CorePrelude-  build-depends:       base                     >= 4       && < 5+  build-depends:       base                     >= 4.6     && < 5                      , hashable                      , bytestring                      , text