servant-auth-server-0.4.6.0: servant-server/servant-auth compatibility

Safe HaskellNone
LanguageHaskell2010

Servant.Auth.Server.Internal.ThrowAll

Documentation

class ThrowAll a where Source #

Methods

throwAll :: ServerError -> a Source #

throwAll is a convenience function to throw errors across an entire sub-API

throwAll err400 :: Handler a :<|> Handler b :<|> Handler c
   == throwError err400 :<|> throwError err400 :<|> err400
Instances
ThrowAll Application Source #

for servant <0.11

Instance details

Defined in Servant.Auth.Server.Internal.ThrowAll

MonadError ServerError m => ThrowAll (m a) Source # 
Instance details

Defined in Servant.Auth.Server.Internal.ThrowAll

Methods

throwAll :: ServerError -> m a Source #

ThrowAll b => ThrowAll (a -> b) Source # 
Instance details

Defined in Servant.Auth.Server.Internal.ThrowAll

Methods

throwAll :: ServerError -> a -> b Source #

(ThrowAll a, ThrowAll b) => ThrowAll (a :<|> b) Source # 
Instance details

Defined in Servant.Auth.Server.Internal.ThrowAll

Methods

throwAll :: ServerError -> a :<|> b Source #

MonadError ServerError m => ThrowAll (Tagged m Application) Source #

for servant >=0.11

Instance details

Defined in Servant.Auth.Server.Internal.ThrowAll