Skip to content

Commit

Permalink
renaming route into mode (for clarity and homogenization)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhesaCaro committed Feb 23, 2022
1 parent 485b253 commit ece559e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/cookbook/generic/Generic.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import Servant.Server.Generic
```
The usage is simple, if you only need a collection of routes.
First you define a record with field types prefixed by a parameter `route`:
First you define a record with field types prefixed by a parameter `mode`:
```haskell
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

0 comments on commit ece559e

Please sign in to comment.