1-- Compile-time test: bodyless responses (e.g. 304, 401) can use {} without
2-- wrapping in { body :: {} }.
3module BodylessResponse.Example where
7import Yoga.Fetch.Om (GET, Route, type (/), client)
10type Resource = { id :: Int, name :: String }
17 ( ok :: { body :: Resource }
23-- This must typecheck: the derived client exposes notModified/unauthorized as Unit errors.
26 . { getResource :: Om (Record ctx) (notModified :: Unit, unauthorized :: Unit | err) Resource }
27api = client @ResourceAPI "https://api.example.com"
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