Spock-core-0.14.0.0: Another Haskell web framework for rapid development
Safe HaskellNone
LanguageHaskell2010

Web.Spock.Routing

Documentation

class RouteM t where Source #

Methods

addMiddleware :: Monad m => Middleware -> t ctx m () Source #

withPrehook :: MonadIO m => ActionCtxT ctx m ctx' -> t ctx' m () -> t ctx m () Source #

wireAny :: Monad m => SpockMethod -> ([Text] -> ActionCtxT ctx m ()) -> t ctx m () Source #

wireRoute :: (Monad m, HasRep xs) => SpockMethod -> Path xs ps -> HVectElim xs (ActionCtxT ctx m ()) -> t ctx m () Source #

Instances

Instances details
RouteM SpockCtxT Source # 
Instance details

Defined in Web.Spock.Core

Methods

addMiddleware :: forall (m :: Type -> Type) ctx. Monad m => Middleware -> SpockCtxT ctx m () Source #

withPrehook :: forall (m :: Type -> Type) ctx ctx'. MonadIO m => ActionCtxT ctx m ctx' -> SpockCtxT ctx' m () -> SpockCtxT ctx m () Source #

wireAny :: forall (m :: Type -> Type) ctx. Monad m => SpockMethod -> ([Text] -> ActionCtxT ctx m ()) -> SpockCtxT ctx m () Source #

wireRoute :: forall (m :: Type -> Type) (xs :: [Type]) (ps :: PathState) ctx. (Monad m, HasRep xs) => SpockMethod -> Path xs ps -> HVectElim xs (ActionCtxT ctx m ()) -> SpockCtxT ctx m () Source #