Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions servant/src/Servant/API/Generic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
-- define a record with field types prefixed by a parameter `route`:
--
-- @
-- data Routes route = Routes
-- { _get :: route :- Capture "id" Int :> Get '[JSON] String
-- , _put :: route :- ReqBody '[JSON] Int :> Put '[JSON] Bool
-- data Routes mode = Routes
-- { _get :: mode :- Capture "id" Int :> Get '[JSON] String
-- , _put :: mode :- ReqBody '[JSON] Int :> Put '[JSON] Bool
-- }
-- deriving ('Generic')
-- @
Expand Down
6 changes: 3 additions & 3 deletions servant/src/Servant/Links.hs
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@ allLinks' toA api = toLink toA api (Link mempty mempty mempty)
-- type is used.
--
-- @
-- data Record route = Record
-- { _get :: route :- Capture "id" Int :> Get '[JSON] String
-- , _put :: route :- ReqBody '[JSON] Int :> Put '[JSON] Bool
-- data Record mode = Record
-- { _get :: mode :- Capture "id" Int :> Get '[JSON] String
-- , _put :: mode :- ReqBody '[JSON] Int :> Put '[JSON] Bool
-- }
-- deriving ('Generic')
--
Expand Down
Loading