packages feed

merge 0.3.0.1 → 0.3.1.1

raw patch · 2 files changed

+7/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Data.Merge: (.!) :: Merge e x a -> (e -> e') -> Merge e' x a

Files

merge.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               merge-version:            0.3.0.1+version:            0.3.1.1 synopsis:           A functor for consistent merging of information description:        A functor for consistent merging of information. author:             Samuel Schlesinger
src/Data/Merge.hs view
@@ -21,12 +21,13 @@     -- * The Merge type   , Merge (Merge, runMerge)     -- * Construction-  , (.?)   , merge   , optional   , required   , combine   , combineWith+  , (.?)+  , (.!)   , combineGen   , combineGenWith   , Alternative(..)@@ -97,6 +98,10 @@ -- which use 'mempty' to provide the default error type. (.?) :: Semigroup e => Merge e x a -> e -> Merge e x a m .? e = Merge \x x' -> bimap (e <>) id (runMerge m x x')++-- | Applies an arbitrary function to the error.+(.!) :: Merge e x a -> (e -> e') -> Merge e' x a+m .! f = Merge \x x' -> bimap f id (runMerge m x x')  infixl 6 .?