loli-2009.7.2: A minimum web dev DSL in HaskellSource codeContentsIndex
Network.Loli.Type
Documentation
type RoutePathT a = (RequestMethod, String, a)Source
type RoutePath = RoutePathT AppUnitSource
type AppReader = EnvSource
type AppState = ResponseSource
type AppUnitT = ReaderT AppReader (StateT AppState IO)Source
type AppUnit = AppUnitT ()Source
type Assoc = [(String, String)]Source
type Context = AssocSource
type RouterT a = String -> (a -> Application) -> RoutePathT a -> MiddlewareSource
type Router = RouterT AppUnitSource
data RouteConfig Source
Constructors
RouteConfig
route_path :: RoutePath
router :: Router
data Loli Source
Constructors
Loli
current_router :: Router
routes :: [RouteConfig]
middlewares :: [Middleware]
mimes :: Assoc
show/hide Instances
type UnitT a = State Loli aSource
type Unit = UnitT ()Source
class Template a whereSource
Methods
interpolate :: a -> String -> Context -> IO StringSource
show/hide Instances
Produced by Haddock version 2.4.2