wai-routes-0.6.2: Typesafe URLs for Wai applications.

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Routes.TH.Types

Contents

Description

Warning! This module is considered internal and may have breaking changes

Synopsis

Data types

data Piece typ Source

Constructors

Static String 
Dynamic typ 

Instances

Functor Piece 
Show typ => Show (Piece typ) 
Lift t => Lift (Piece t) 

data Dispatch typ Source

Constructors

Methods 

Fields

methodsMulti :: Maybe typ

type of the multi piece at the end

methodsMethods :: [String]

supported request methods

Subsite 

Fields

subsiteType :: typ
 
subsiteFunc :: String
 

Instances

Functor Dispatch 
Show typ => Show (Dispatch typ) 
Lift t => Lift (Dispatch t) 

data FlatResource a Source

Constructors

FlatResource 

Helper functions