Skip to content

Commit

Permalink
new 1.0.20.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosh committed Sep 12, 2024
1 parent cde264f commit 9ded34d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mono-traversable/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog for mono-traversable

## 1.0.20.0

* Added instances for [`Reverse`](https://hackage.haskell.org/package/transformers-0.6.1.1/docs/Data-Functor-Reverse.html#t:Reverse) data structure.

## 1.0.19.1

* Removed 'highly experimental' warning haddock comment from Data.Containers.
Expand Down
2 changes: 1 addition & 1 deletion mono-traversable/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mono-traversable
version: 1.0.19.0
version: 1.0.20.0
synopsis: Type classes for mapping, folding, and traversing monomorphic containers
description: Please see the README at <https://www.stackage.org/package/mono-traversable>
category: Data
Expand Down
3 changes: 3 additions & 0 deletions mono-traversable/src/Data/MonoTraversable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ instance U.Unbox a => MonoFunctor (U.Vector a) where
instance VS.Storable a => MonoFunctor (VS.Vector a) where
omap = VS.map
{-# INLINE omap #-}
-- | @since 1.0.20.0
instance MonoFunctor (f a) => MonoFunctor (Reverse f a) where
omap f (Reverse t) = Reverse (omap f t)

Expand Down Expand Up @@ -828,6 +829,7 @@ instance MonoFoldable (U1 a)
instance MonoFoldable (V1 a)
-- | @since 1.0.11.0
instance MonoFoldable (Proxy a)
-- | @since 1.0.20.0
instance MonoFoldable (f a) => MonoFoldable (Reverse f a) where
ofoldMap f (Reverse t) = getDual (ofoldMap (Dual . f) t)
ofoldr f z (Reverse t) = ofoldl' (flip f) z t
Expand Down Expand Up @@ -1097,6 +1099,7 @@ instance MonoTraversable (U1 a)
instance MonoTraversable (V1 a)
-- | @since 1.0.11.0
instance MonoTraversable (Proxy a)
-- | @since 1.0.20.0
instance (MonoTraversable (f a)) => MonoTraversable (Reverse f a) where
otraverse f (Reverse t) = (fmap Reverse . forwards) (otraverse (Backwards . f) t)

Expand Down

0 comments on commit 9ded34d

Please sign in to comment.