fluid-idl-scotty-0.0.0: Scotty server add-on for Fluid

Safe HaskellNone
LanguageHaskell2010

Fluid.Server.Scotty

Synopsis

Documentation

runServer :: (MonadIO m, MonadIO n) => Pull -> (m WaiResponse -> IO WaiResponse) -> ScottyT e m () -> n () Source #

getSpec :: (ScottyError e, MonadIO m) => Value -> Pull -> 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.

Minimal complete definition

stringError, showError

data ScottyT e m a :: * -> (* -> *) -> * -> * #

Instances

Monad (ScottyT e m) 

Methods

(>>=) :: ScottyT e m a -> (a -> ScottyT e m b) -> ScottyT e m b #

(>>) :: ScottyT e m a -> ScottyT e m b -> ScottyT e m b #

return :: a -> ScottyT e m a #

fail :: String -> ScottyT e m a #

Functor (ScottyT e m) 

Methods

fmap :: (a -> b) -> ScottyT e m a -> ScottyT e m b #

(<$) :: a -> ScottyT e m b -> ScottyT e m a #

Applicative (ScottyT e m) 

Methods

pure :: a -> ScottyT e m a #

(<*>) :: ScottyT e m (a -> b) -> ScottyT e m a -> ScottyT e m b #

(*>) :: ScottyT e m a -> ScottyT e m b -> ScottyT e m b #

(<*) :: ScottyT e m a -> ScottyT e m b -> ScottyT e m a #