packages feed

transformers 0.5.3.1 → 0.5.4.0

raw patch · 3 files changed

+18/−1 lines, 3 files

Files

Data/Functor/Constant.hs view
@@ -34,6 +34,10 @@ #if MIN_VERSION_base(4,8,0) import Data.Bifunctor (Bifunctor(..)) #endif+#if MIN_VERSION_base(4,10,0)+import Data.Bifoldable (Bifoldable(..))+import Data.Bitraversable (Bitraversable(..))+#endif import Prelude hiding (null, length)  -- | Constant functor.@@ -114,4 +118,14 @@     {-# INLINE first #-}     second _ (Constant x) = Constant x     {-# INLINE second #-}+#endif++#if MIN_VERSION_base(4,10,0)+instance Bifoldable Constant where+    bifoldMap f _ (Constant a) = f a+    {-# INLINE bifoldMap #-}++instance Bitraversable Constant where+    bitraverse f _ (Constant a) = Constant <$> f a+    {-# INLINE bitraverse #-} #endif
changelog view
@@ -1,5 +1,8 @@ -*-change-log-*- +0.5.4.0 Ross Paterson <R.Paterson@city.ac.uk> Feb 2017+	* Migrate Bifoldable and Bitraversable instances for Constant+ 0.5.3.1 Ross Paterson <R.Paterson@city.ac.uk> Feb 2017 	* Fixed for pre-AMP environments 
transformers.cabal view
@@ -1,5 +1,5 @@ name:         transformers-version:      0.5.3.1+version:      0.5.4.0 license:      BSD3 license-file: LICENSE author:       Andy Gill, Ross Paterson