Servant.Server.Internal.Handler
newtype Handler a Source #
Constructors
Fields
Defined in Servant.Server.Internal.Handler
Methods
(>>=) :: Handler a -> (a -> Handler b) -> Handler b Source #
(>>) :: Handler a -> Handler b -> Handler b Source #
return :: a -> Handler a Source #
fmap :: (a -> b) -> Handler a -> Handler b Source #
(<$) :: a -> Handler b -> Handler a Source #
fail :: String -> Handler a Source #
pure :: a -> Handler a Source #
(<*>) :: Handler (a -> b) -> Handler a -> Handler b Source #
liftA2 :: (a -> b -> c) -> Handler a -> Handler b -> Handler c Source #
(*>) :: Handler a -> Handler b -> Handler b Source #
(<*) :: Handler a -> Handler b -> Handler a Source #
liftIO :: IO a -> Handler a Source #
throwM :: Exception e => e -> Handler a Source #
catch :: Exception e => Handler a -> (e -> Handler a) -> Handler a Source #
mask :: (( forall a. Handler a -> Handler a) -> Handler b) -> Handler b Source #
uninterruptibleMask :: (( forall a. Handler a -> Handler a) -> Handler b) -> Handler b Source #
generalBracket :: Handler a -> (a -> ExitCase b -> Handler c) -> (a -> Handler b) -> Handler (b, c) Source #
liftBase :: IO α -> Handler α Source #
Associated Types
type StM Handler a Source #
liftBaseWith :: ( RunInBase Handler IO -> IO a) -> Handler a Source #
restoreM :: StM Handler a -> Handler a Source #
throwError :: ServerError -> Handler a Source #
catchError :: Handler a -> ( ServerError -> Handler a) -> Handler a Source #
type Rep ( Handler a) :: Type -> Type Source #
from :: Handler a -> Rep ( Handler a) x Source #
to :: Rep ( Handler a) x -> Handler a Source #
runHandler :: Handler a -> IO ( Either ServerError a) Source #