rest: Open Source REST Framework For Haskell

Silk has recently open-sourced a REST framework for Haskell, called "rest". It provides a DSL for defining REST services which can then be run in popular web frameworks such as happstack. This comes with features such as type-safe URLs, abstraction of format-type support, and a clean separation of API specification and business logic.

The popular Haskell web frameworks already provide support for features such as type-safe urls, routing, templating etc. The main advantage of using "rest" is that it allows separation of business logic from the API definition concerns such as routing, parsing/serializing to input/output formats and request-types supported for a particular resource. To do this, it provides various "smart" constructors that you can use to wrap your strongly-typed functions.

Have a look at this tutorial, to learn more and get started with rest.