Skip to content

Commit

Permalink
[fix] fix build issue with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoIV committed Jan 27, 2025
1 parent 8c536e6 commit ff7b37a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/cookbook/named-routes/NamedRoutes.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ moviesDB =
]
getMovieHandler :: MovieId -> Handler (Maybe Movie)
getMovieHandler requestMovieId = find (\movie -> movie.movieId == requestMovieId) moviesDB
getMovieHandler requestMovieId = pure $ find (\movie -> movie.movieId == requestMovieId) moviesDB

updateMovieHandler :: MovieId -> Movie -> Handler NoContent
updateMovieHandler requestedMovieId newMovie =
Expand Down Expand Up @@ -376,6 +376,7 @@ appToHandler env act = runReaderT act env
appMyMonad :: HandlerEnv -> Application
appMyMonad env = genericServeT (appToHandler env) appMapi
where
appMapi :: ServerT (NamedRoutes API) m
appMapi = undefined
```
Expand Down

0 comments on commit ff7b37a

Please sign in to comment.