18-- | The `req` can only ever be `Unit`
19foreign import data GET :: Type -> Type -> HttpMethod
20foreign import data POST :: Type -> Type -> HttpMethod
21foreign import data PUT :: Type -> Type -> HttpMethod
22foreign import data DELETE :: Type -> Type -> HttpMethod
23foreign import data PATCH :: Type -> Type -> HttpMethod
25class MethodName :: HttpMethod -> Constraint
26class MethodName method where
29instance MethodName (GET req resp) where
32instance MethodName (POST req resp) where
35instance MethodName (PUT req resp) where
38instance MethodName (DELETE req resp) where
41instance MethodName (PATCH req resp) where
44data Slash :: forall k1 k2. k1 -> k2 -> Type
47-- | Operator for separating path pieces when specisying APIs.
48-- | `Symbol`s are treated as constant path pieces.
49-- | `Record`s are treated as query parameters. `Array`s are lists, `Maybe`s are optional query parameters.
50-- | Other types are captured path pieces.
51infixr 1 type Slash as /
53data Headers headers r = Headers headers r
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list