bifunctors 0.1.2 → 0.1.3
raw patch · 1 files changed
+6/−6 lines, 1 filesdep ~semigroupoidsdep ~semigroupsPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: semigroupoids, semigroups
API changes (from Hackage documentation)
- Data.Bifoldable: class Bifoldable p
+ Data.Bifoldable: class Bifoldable p where bifold = bifoldMap id id bifoldMap f g = bifoldr (mappend . f) (mappend . g) mempty bifoldr f g z t = appEndo (bifoldMap (Endo . f) (Endo . g) t) z bifoldl f g z t = appEndo (getDual (bifoldMap (Dual . Endo . flip f) (Dual . Endo . flip g) t)) z
- Data.Bifunctor: class Bifunctor p
+ Data.Bifunctor: class Bifunctor p where bimap f g = first f . second g first f = bimap f id second = bimap id
- Data.Bifunctor.Apply: class Bifunctor p => Biapply p
+ Data.Bifunctor.Apply: class Bifunctor p => Biapply p where a .>> b = bimap (const id) (const id) <<$>> a <<.>> b a <<. b = bimap const const <<$>> a <<.>> b
- Data.Bitraversable: class (Bifunctor t, Bifoldable t) => Bitraversable t
+ Data.Bitraversable: class (Bifunctor t, Bifoldable t) => Bitraversable t where bitraverse f g = bisequenceA . bimap f g bisequenceA = bitraverse id id bimapM f g = unwrapMonad . bitraverse (WrapMonad . f) (WrapMonad . g) bisequence = bimapM id id
- Data.Semigroup.Bifoldable: class Bifoldable t => Bifoldable1 t
+ Data.Semigroup.Bifoldable: class Bifoldable t => Bifoldable1 t where bifold1 = bifoldMap1 id id bifoldMap1 f g = maybe (error "bifoldMap1") id . getOption . bifoldMap (Option . Just . f) (Option . Just . g)
- Data.Semigroup.Bitraversable: class (Bifoldable1 t, Bitraversable t) => Bitraversable1 t
+ Data.Semigroup.Bitraversable: class (Bifoldable1 t, Bitraversable t) => Bitraversable1 t where bitraverse1 f g = bisequence1 . bimap f g bisequence1 = bitraverse1 id id
Files
- bifunctors.cabal +6/−6
bifunctors.cabal view
@@ -1,6 +1,6 @@ name: bifunctors category: Data, Functors-version: 0.1.2+version: 0.1.3 license: BSD3 cabal-version: >= 1.6 license-file: LICENSE@@ -18,10 +18,10 @@ location: git://github.com/ekmett/bifunctors.git library- build-depends: - base >= 4 && < 5,- semigroups >= 0.8 && < 0.9,- semigroupoids >= 1.2.6 && < 1.3+ build-depends:+ base >= 4 && < 5,+ semigroups >= 0.8.2 && < 0.9,+ semigroupoids >= 1.2 && < 1.4 exposed-modules: Data.Bifunctor@@ -31,4 +31,4 @@ Data.Semigroup.Bifoldable Data.Semigroup.Bitraversable - ghc-options: -Wall + ghc-options: -Wall