Wheb-0.0.1.1: The Batteries-Included Haskell WAI Framework

Safe HaskellNone

Web.Wheb.Types

Contents

Synopsis

Documentation

newtype WhebT g s m a Source

WhebT g s m

  • g -> The global confirgured context (Read-only data shared between threads)
  • s -> Request state initailized at the start of each request using Default
  • m -> Monad we are transforming

Constructors

WhebT 

Instances

Monad m => MonadError WhebError (WhebT g s m) 
MonadTrans (WhebT g s) 
Monad m => Monad (WhebT g s m) 
Functor m => Functor (WhebT g s m) 
(Monad m, Functor m) => Applicative (WhebT g s m) 
MonadIO m => MonadIO (WhebT g s m) 

newtype InitM g s m a Source

Writer Monad to build options.

Constructors

InitM 

Fields

runInitM :: WriterT (InitOptions g s m) IO a
 

Instances

Monad (InitM g s m) 
Functor (InitM g s m) 
Applicative (InitM g s m) 
MonadIO (InitM g s m) 

class WhebContent a whereSource

Converts a type to a WAI Response

data WhebFile Source

A Wheb response that represents a file.

Constructors

WhebFile Text 

data HandlerResponse Source

Constructors

forall a . WhebContent a => HandlerResponse Status a 

data HandlerData g s m Source

Our ReaderT portion of WhebT uses this.

data InternalState s Source

Our StateT portion of WhebT uses this.

Instances

data SettingsValue Source

Constructors

forall a . Typeable a => MkVal a 

data InitOptions g s m Source

Monoid to use in InitM's WriterT

Constructors

InitOptions 

Instances

data WhebOptions g s m Source

The main option datatype for Wheb

type MinWheb a = WhebT () () IO aSource

A minimal type for WhebT

type MinOpts = WhebOptions () () IOSource

A minimal type for WhebOptions

Routes

data ParsedChunk Source

Constructors

forall a . (Typeable a, Show a) => MkChunk a 

data UrlParser Source

A Parser should be able to extract params and regenerate URL from params.

data ChunkType Source

Constructors

IntChunk 
TextChunk