Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
maybeNotFound :: (ToJSON a, ScottyError e, Monad m) => String -> Maybe a -> ActionT e m () Source #
eitherNotFound :: (ToJSON a, ScottyError e, Monad m) => Either Err a -> ActionT e m () Source #
eitherBadRequest :: (ToJSON a, ScottyError e, Monad m) => Either Err a -> ActionT e m () Source #
errNotFound :: (ScottyError e, Monad m) => String -> ActionT e m () Source #
errBadRequest :: (ScottyError e, Monad m) => String -> ActionT e m () Source #
okListResult :: (ToJSON a, ScottyError e, Monad m) => Text -> List a -> ActionT e m () Source #