Safe Haskell | None |
---|---|
Language | Haskell2010 |
- runServer :: (MonadIO m, MonadIO n) => Pull -> (m WaiResponse -> IO WaiResponse) -> ScottyT e m () -> n ()
- respond :: (ScottyError e, MonadIO m) => Pull -> ([(LazyText, LazyText)] -> Map Major (Minor, Request -> m (Either Response Response))) -> ScottyT e m ()
- respondSingleton :: (ScottyError e, MonadIO m) => Pull -> Version -> ([(LazyText, LazyText)] -> Request -> m (Either Response Response)) -> ScottyT e m ()
- getSpec :: (ScottyError e, MonadIO m) => Value -> Pull -> ScottyT e m ()
- class ScottyError e
- data ScottyT e m a :: * -> (* -> *) -> * -> *
- type WaiResponse = Response
- type LazyText = Text
Documentation
runServer :: (MonadIO m, MonadIO n) => Pull -> (m WaiResponse -> IO WaiResponse) -> ScottyT e m () -> n () Source #
respond :: (ScottyError e, MonadIO m) => Pull -> ([(LazyText, LazyText)] -> Map Major (Minor, Request -> m (Either Response Response))) -> ScottyT e m () Source #
respondSingleton :: (ScottyError e, MonadIO m) => Pull -> Version -> ([(LazyText, LazyText)] -> Request -> m (Either Response Response)) -> ScottyT e m () Source #
class ScottyError e #
In order to use a custom exception type (aside from Text
), you must
define an instance of ScottyError
for that type.
ScottyError Text | |
ScottyError e => ScottyError (ActionError e) | |
type WaiResponse = Response Source #