Servant provides a type-level domain-specific language (DSL) in Haskell for describing web APIs. From a single API specification, developers can derive server implementations, client libraries, documentation, and more—ensuring consistency and type safety across the stack.

Features

  • Defines APIs at the type level for compile-time consistency
  • Derives server handlers, clients (Haskell and other languages), and docs from the same spec
  • Extensible with custom combinators and interpretations
  • Ensures request/response marshalling matches Haskell types
  • Used in production by companies like GitHub, Klarna, and IOHK (Cardano)
  • Supports static documentation generation and mocking via API descriptions

Project Samples

Project Activity

See All Activity >

Categories

Libraries

Follow Servant

Servant Web Site

nel_h2
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Servant!

Additional Project Details

Programming Language

Haskell

Related Categories

Haskell Libraries

Registered

2025-09-04