Safe Haskell | None |
---|---|
Language | Haskell2010 |
Specification for valid Request component types used at the Kind and Type level for creating an API structure.
Synopsis
- data ReqContent a
- = Path a Symbol
- | Params [(Symbol, a)]
- | QueryFlags a [Symbol]
- | Captures [a]
- | BasicAuth a Symbol
- | CaptureAll a
- | ReqBody a a
- | StreamBody a a
- | ReqHeaders [(Symbol, a)]
- type Captures = Captures
- type QueryFlags = QueryFlags ()
- type Params = Params
- type ReqBody = ReqBody
- type StreamBody = StreamBody
- type ReqHeaders = ReqHeaders
- type CaptureAll = CaptureAll
- type BasicAuth = BasicAuth ()
- type Path = Path ()
- type QueryFlag (s :: Symbol) = QueryFlags '[s]
- type Param s t = Params '['(s, t)]
- type Capture t = Captures '[t]
- data SReqContent (a :: ReqContent Type)
- = a ~ Path t s => SPath (Sing t) (Sing s)
- | a ~ QueryFlags b ts => SQueryFlags (Sing b) (Sing ts)
- | a ~ CaptureAll b => SCaptureAll (Sing b)
- | a ~ Captures ts => SCaptures (Sing ts)
- | a ~ ReqBody ctyp b => SReqBody (Sing ctyp) (Sing b)
- | a ~ StreamBody ctyp b => SStreamBody (Sing ctyp) (Sing b)
- | a ~ ReqHeaders ts => SReqHeaders (Sing ts)
- | a ~ Params ts => SParams (Sing ts)
- | a ~ BasicAuth b s => SBasicAuth (Sing b) (Sing s)
Request Type
data ReqContent a Source #
Path a Symbol | |
Params [(Symbol, a)] | |
QueryFlags a [Symbol] | |
Captures [a] | |
BasicAuth a Symbol | |
CaptureAll a | |
ReqBody a a | |
StreamBody a a | |
ReqHeaders [(Symbol, a)] |
Instances
Request Type Synonyms
type QueryFlags = QueryFlags () Source #
type StreamBody = StreamBody Source #
type ReqHeaders = ReqHeaders Source #
type CaptureAll = CaptureAll Source #
type QueryFlag (s :: Symbol) = QueryFlags '[s] Source #
Request as a Singleton GADT
data SReqContent (a :: ReqContent Type) Source #
a ~ Path t s => SPath (Sing t) (Sing s) | |
a ~ QueryFlags b ts => SQueryFlags (Sing b) (Sing ts) | |
a ~ CaptureAll b => SCaptureAll (Sing b) | |
a ~ Captures ts => SCaptures (Sing ts) | |
a ~ ReqBody ctyp b => SReqBody (Sing ctyp) (Sing b) | |
a ~ StreamBody ctyp b => SStreamBody (Sing ctyp) (Sing b) | |
a ~ ReqHeaders ts => SReqHeaders (Sing ts) | |
a ~ Params ts => SParams (Sing ts) | |
a ~ BasicAuth b s => SBasicAuth (Sing b) (Sing s) |