scotty-0.8.2: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp

Safe HaskellNone

Web.Scotty.Internal.Types

Synopsis

Documentation

data Options Source

Constructors

Options 

Fields

verbose :: Int

0 = silent, 1(def) = startup banner

settings :: Settings

Warp Settings Note: to work around an issue in warp, the default FD cache duration is set to 0 so changes to static files are always picked up. This likely has performance implications, so you may want to modify this for production servers using setFdCacheDuration.

Instances

data ScottyState e m Source

Constructors

ScottyState 

Instances

newtype ScottyT e m a Source

Constructors

ScottyT 

Fields

runS :: StateT (ScottyState e m) m a
 

Instances

MonadTrans (ScottyT e) 
Monad m => Monad (ScottyT e m) 
Functor m => Functor (ScottyT e m) 
(Monad m, Functor m) => Applicative (ScottyT e m) 
MonadIO m => MonadIO (ScottyT e m) 

class ScottyError e whereSource

In order to use a custom exception type (aside from Text), you must define an instance of ScottyError for that type.

type ErrorHandler e m = Maybe (e -> ActionT e m ())Source

data ActionEnv Source

Constructors

Env