packages feed

multi-except 0.1.1.0 → 0.1.2.0

raw patch · 3 files changed

+10/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for multi-except +## 0.1.2.0 -- 2021-05-26++* Added fromEither+ ## 0.1.1.0 -- 2021-05-11  * Added Alt instance from semigroupoids
Control/Applicative/MultiExcept.hs view
@@ -38,6 +38,11 @@ succeed :: a -> MultiExcept err a succeed a = Success a +-- | Convert an Either to a MultiExcept+fromEither :: Either err a -> MultiExcept err a+fromEither (Left err) = Errors (DNE.singleton err)+fromEither (Right a) = Success a+ instance Functor (MultiExcept err) where   fmap f (Success a) = Success $ f a   fmap _ (Errors errs) = Errors errs
multi-except.cabal view
@@ -1,7 +1,7 @@ cabal-version:       >=1.10  name:                multi-except-version:             0.1.1.0+version:             0.1.2.0 synopsis:            Multiple Exceptions description:         Exception type that supports reporting multiple exceptions license:             MIT