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

Safe HaskellNone
LanguageHaskell2010

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 :: State (ScottyState e m) a
 

Instances

class ScottyError e where Source

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

type Param = (Text, Text) Source