From d462550f07beebd6d6a9855ab6df555f46a16cf3 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 18 Dec 2017 14:04:43 +0100 Subject: [PATCH] add mapExcept(T) and withExcept(T) (#76) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/Protolude.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Protolude.hs b/src/Protolude.hs index c9407449b..6142bccc9 100644 --- a/src/Protolude.hs +++ b/src/Protolude.hs @@ -295,6 +295,10 @@ import Control.Monad.Except as X ( , catchError , runExcept , runExceptT + , mapExcept + , mapExceptT + , withExcept + , withExceptT ) import Control.Monad.Trans as X (