packages feed

ron 0.5 → 0.6

raw patch · 2 files changed

+6/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ RON.Error: liftEither :: MonadError e m => Either e a -> m a
+ RON.Error: liftEitherString :: (MonadError e m, IsString e) => Either String a -> m a

Files

lib/RON/Error.hs view
@@ -6,6 +6,8 @@     Error (..),     MonadE,     errorContext,+    liftEither,+    liftEitherString,     liftMaybe,     throwErrorString,     throwErrorText,@@ -28,6 +30,9 @@  liftMaybe :: MonadE m => Text -> Maybe a -> m a liftMaybe msg = maybe (throwErrorText msg) pure++liftEitherString :: (MonadError e m, IsString e) => Either String a -> m a+liftEitherString = either throwErrorString pure  throwErrorText :: MonadE m => Text -> m a throwErrorText msg = throwError $ Error msg []
ron.cabal view
@@ -1,7 +1,7 @@ cabal-version:  2.2  name:           ron-version:        0.5+version:        0.6  bug-reports:    https://github.com/ff-notes/ron/issues category:       Distributed Systems, Protocol, Database