© Ecky Putrady 2018
Ecky PutradyPractical Web Development with Haskellhttps://doi.org/10.1007/978-1-4842-3739-7_7

7. RESTful APIs

Ecky Putrady1 
(1)
Singapore, Singapore, Singapore
 

In this chapter, we are going to explore how to do web programming in Haskell. When building web applications, it’s common to use a web framework. Haskell also has such frameworks. The most popular ones are scotty,1 servant,2 and yesod.3 All those frameworks are built on top of wai.4 wai is a Haskell package that defines the types for HTTP request and response. It has no actual implementation. The only production-ready implementation of wai is warp.5

scotty is a minimal web framework for Haskell. “Framework” may be an overstatement. scotty is more like a library that handles ...

Get Practical Web Development with Haskell: Master the Essential Skills to Build Fast and Scalable Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.