Popularity
5.4
Growing
Activity
0.0
Stable
14
3
0
Monthly Downloads: 3
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Latest version: v0.2
servant-flatten alternatives and similar packages
Based on the "servant" category.
Alternatively, view servant-flatten alternatives based on common mentions on social networks and blogs.
-
servant
Servant is a Haskell DSL for describing, serving, querying, mocking, documenting web applications and more! -
servant-generate
Generate default implementations for servers in a flexible way (a.k.a servant-mock on steroids)
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
Promo
sevalla.com

Do you think we are missing an alternative of servant-flatten or a related project?
README
servant-flatten
Utilities for flattening servant API types
The main function from this library is:
flatten :: Proxy api -> Proxy (Flat api)
Its purpose is to "flatten" an API type, by distributing
any factored combinators, so as to end up with completely
flat endpoint descriptions, separated by :<|>
s.
For example, it turns:
type API = Capture "foo" Int :>
( Capture "bar" String :>
( Get '[JSON] String :<|>
ReqBody '[JSON] Int :> Post '[JSON] Int
) :<|>
Get '[JSON] Int
) :<|>
Get '[JSON] [String]
into:
Capture "foo" Int :> Capture "bar" String :> Get '[JSON] String :<|>
Capture "foo" Int :> Capture "bar" String :> ReqBody '[JSON] Int :> Post '[JSON] Int :<|>
Capture "foo" Int :> Get '[JSON] Int :<|>
Get '[JSON] [String]
See the documentation of flatten
in Servant.API.Flatten
for more.