December 2024
Beginner
456 pages
13h 37m
English
In the last chapter, we discussed how to implement the conversion of Haskell data to and from JSON and how to store that data in a database. We also provided a few types for the todo list API we want to use.
In this chapter, we will complete the project by first exploring the Servant ecosystem of libraries and packages to define a typesafe API and define a server for it. After doing so, we extend the server to also serve HTML to the client. We then wrap things up by automatically deriving a client application for the API server.
For our server, we ...