failable 1.2.3.0 → 1.2.4.0
raw patch · 3 files changed
+4/−4 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Control.Monad.Failable: autohoist :: (e ~ SomeException, Hoistable m t e) => t a -> m a
+ Control.Monad.Failable: autohoist :: (Exception e, Hoistable m t e) => t a -> m a
Files
- failable.cabal +2/−2
- package.yaml +1/−1
- src/Control/Monad/Failable.hs +1/−1
failable.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 93b641ce8250cf5be47f3dd076ef5b7275d1730554ece2b325f4e75617100984+-- hash: 05b80c453f907d104d96ed9122fa1b7752697acd549ce0cf252f1261b8875da3 name: failable-version: 1.2.3.0+version: 1.2.4.0 synopsis: A 'Failable' error monad class to unify failure across monads that can fail description: This library contains a 'Failable' error monad class to unify failure across monads and transformers most commonly used to implement pipelines that can fail and does so in a simple nonsense way by providing the means of signaling a computation "failure" while striving to keep the failure behaviour consistent with the actual definition of the monad/transformer. Please refer to the README file for a more elaborate description and some examples. category: control, exceptions, monad
package.yaml view
@@ -1,5 +1,5 @@ name: failable-version: 1.2.3.0+version: 1.2.4.0 license: BSD3 author: "Erick Gonzalez" maintainer: "erick@codemonkeylabs.de"
src/Control/Monad/Failable.hs view
@@ -122,7 +122,7 @@ -- | Utility function to capture the idiom `hoist id` .. which is used to promote a type -- to a failable without requiring any error transformation-autohoist :: (e ~ SomeException, Hoistable m t e) => t a -> m a+autohoist :: (Exception e, Hoistable m t e) => t a -> m a autohoist = hoist id instance Failable IO where