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:
Profpatsch
2017-12-18 13:04:43 +00:00
committed by Stephen Diehl
parent c9a2d176d1
commit d462550f07
+4
View File
@@ -295,6 +295,10 @@ import Control.Monad.Except as X (
, catchError
, runExcept
, runExceptT
, mapExcept
, mapExceptT
, withExcept
, withExceptT
)
import Control.Monad.Trans as X (