Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Generator functions
gen :: forall (api :: Type). GenAll api => String Source #
Obtain the String for the client a la carte without type definitions
tsClient :: forall xs api. (TypeDecls xs, GenAll api) => String Source #
Generate complete TypeScript client for a given api
Type Classes
class Fletch route where Source #
Type class that iterates over the servant type and seperates out inputs and outputs
Instances
The type class for iterating over the API type
genAll
AST data types
What kind of API documentation are we using for this route?
data InputMethod Source #
What is the means of input for this URIBit
?
An input chunk of the URI
Orphan instances
FieldTypeName Jwt Source # | |
fieldTypeName :: Proxy Jwt -> FieldSpec # | |
FieldTypeName NoContent Source # | |
fieldTypeName :: Proxy NoContent -> FieldSpec # | |
(FieldTypeName x, FieldTypeName hs) => FieldTypeName (Headers hs x :: Type) Source # | |
fieldTypeName :: Proxy (Headers hs x) -> FieldSpec # | |
FieldTypeName ('[] :: [k]) Source # | |
fieldTypeName :: Proxy '[] -> FieldSpec # | |
(FieldTypeName hs, FieldTypeName x) => FieldTypeName (Header' ts doc x ': hs :: [Type]) Source # | |
fieldTypeName :: Proxy (Header' ts doc x ': hs) -> FieldSpec # | |
(ToJSON x, FromHList xs) => ToJSON (Headers xs x) Source # | |