From f02c75e88485f81952906c82269a9e58000da9b8 Mon Sep 17 00:00:00 2001 From: Marco Zocca Date: Thu, 6 Jul 2023 05:43:24 +0200 Subject: [PATCH] get rid of ActionT.return --- Web/Scotty/Internal/Types.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/Web/Scotty/Internal/Types.hs b/Web/Scotty/Internal/Types.hs index 1098f142..31d3b118 100644 --- a/Web/Scotty/Internal/Types.hs +++ b/Web/Scotty/Internal/Types.hs @@ -164,7 +164,6 @@ newtype ActionT e m a = ActionT { runAM :: ExceptT (ActionError e) (ReaderT Acti deriving ( Functor, Applicative, MonadIO ) instance (Monad m, ScottyError e) => Monad.Monad (ActionT e m) where - return = ActionT . return ActionT m >>= k = ActionT (m >>= runAM . k) #if !(MIN_VERSION_base(4,13,0)) fail = Fail.fail