Servant (web framework)

Haskell web framework From Wikipedia, the free encyclopedia

Servant is a web framework based on the functional programming language Haskell, with an emphasis on data type safety.[2][3][4][5] It is free and open-source software released under a BSD 3-clause license.

Original authorsAlp Mestanogullari, Sönke Hahn, Julian Arni
Initial release2014; 12 years ago (2014)
Preview release
0.16 / 2018; 8 years ago (2018)
Written inHaskell
Quick facts Original authors, Initial release ...
Servant
Original authorsAlp Mestanogullari, Sönke Hahn, Julian Arni
Initial release2014; 12 years ago (2014)
Preview release
0.16 / 2018; 8 years ago (2018)
Written inHaskell
Operating systemCross-platform
Available inEnglish
TypeWeb framework
LicenseBSD 3-clause[1]
Websitewww.servant.dev
Close

Overview

Servant provides a type-level domain-specific language (DSL) to describe World Wide Web application programming interfaces (Web APIs); various interpretations of such descriptions are possible: as a server, which dispatches requests to handlers; as documentation and schema specifications for the API; and as client libraries in various languages.[6]

The type-level approach by Servant solves the expression problem by allowing the extensibility along the dimensions of both data and behavior.[6] New combinators or terms in the DSL can be modularly introduced, as can new interpretations of them, as entirely separate packages. As of 2023, well over 100 packages related to Servant have been published in the Haskell package repository.[7]

Use

It is used in production by companies such as GitHub,[8] NoRedInk,[9] Klarna,[10] Input Output Global Inc. (in the Cardano project),[11] and Wire.[12]

See also

References

Related Articles

Wikiwand AI