haskell-servant/servant-bazaar

Name: servant-bazaar

Owner: servant

Description: An example project to illustrate how to package servant combinators

Created: 2016-06-13 04:10:05.0

Updated: 2016-06-13 05:57:32.0

Pushed: 2016-06-13 04:16:41.0

Homepage: null

Size: 5

Language: Haskell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

servant-bazaar implements a servant API combinator called Bazaar. That combinator is not useful for anything. The package merely exists to illustrate how you might want to publish servant combinators independently of the core servant packages. Specifically it illustrates how to create a package while letting your users pick which combination of servant interpretations (e.g. servant-server, servant-client, servant-swagger) they want to use and therefore depend on. This package then doesn't introduce any unwanted dependencies on interpretations that are not used.

This package defines three cabal flags:

Other interpretations can be easily added following the same pattern.

(This is of course just one way to package a combinator and should be taken as a suggestion.)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.