summaryrefslogtreecommitdiff
path: root/lib/SlackBuilder/Trans.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SlackBuilder/Trans.hs')
-rw-r--r--lib/SlackBuilder/Trans.hs10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/SlackBuilder/Trans.hs b/lib/SlackBuilder/Trans.hs
index 5147a9a..ee9b539 100644
--- a/lib/SlackBuilder/Trans.hs
+++ b/lib/SlackBuilder/Trans.hs
@@ -1,11 +1,19 @@
module SlackBuilder.Trans
- ( SlackBuilderT(..)
+ ( SlackBuilderException(..)
+ , SlackBuilderT(..)
) where
import Control.Monad.Trans.Reader (ReaderT(..))
+import Data.Text (Text)
import SlackBuilder.Config
import Control.Monad.IO.Class (MonadIO(..))
import Control.Monad.Catch (MonadCatch(..), MonadThrow(..))
+import Control.Exception (Exception(..))
+
+newtype SlackBuilderException = UpdaterNotFound Text
+ deriving Show
+
+instance Exception SlackBuilderException
newtype SlackBuilderT a = SlackBuilderT
{ runSlackBuilderT :: ReaderT Settings IO a