add mapExcept(T) and withExcept(T) (#76)
Since we already export functions like `withState` and the names don’t clash with anything, we export these transformation functions as well. Every function from Control.Monad.Except is now exported, the user doesn’t need to import it for common error handling tasks.
This commit is contained in:
committed by
Stephen Diehl
parent
c9a2d176d1
commit
d462550f07
@@ -295,6 +295,10 @@ import Control.Monad.Except as X (
|
||||
, catchError
|
||||
, runExcept
|
||||
, runExceptT
|
||||
, mapExcept
|
||||
, mapExceptT
|
||||
, withExcept
|
||||
, withExceptT
|
||||
)
|
||||
|
||||
import Control.Monad.Trans as X (
|
||||
|
||||
Reference in New Issue
Block a user