on master help sign in
Merge pull request #847 from phadej/pull-742
c9ddd9bOleg Grenrus
doc/examples.md+26−18
@@ -2,36 +2,44 @@
2
2
3- **[example-servant-minimal](https://github.com/haskell-servant/example-servant-minimal)**:
3- **[example-servant-minimal](https://github.com/haskell-servant/example-servant-minimal)**:
4
4
5− A minimal example for a web server written using **servant-server**,
5+ A minimal example for a web server written using **servant-server**,
6− including a test-suite using [**hspec**](http://hspec.github.io/) and
6+ including a test-suite using [**hspec**](http://hspec.github.io/) and
7− **servant-client**.
7+ **servant-client**.
8
8
9
9
10- **[stack-templates](https://github.com/commercialhaskell/stack-templates)**
10- **[stack-templates](https://github.com/commercialhaskell/stack-templates)**
11
11
12− Repository for templates for haskell projects, including some templates using
12+ Repository for templates for haskell projects, including some templates using
13− **servant**. These templates can be used with `stack new`.
13+ **servant**. These templates can be used with `stack new`.
14
14
15- **[custom-monad](https://github.com/themoritz/diener)**:
15- **[custom-monad](https://github.com/themoritz/diener)**:
16
16
17− A custom monad that can replace `IO` in servant applications. It adds among
17+ A custom monad that can replace `IO` in servant applications. It adds among
18− other things logging functionality and a reader monad (for database connections).
18+ other things logging functionality and a reader monad (for database connections).
19− A full usage example of servant/diener is also provided.
19+ A full usage example of servant/diener is also provided.
20−
21
20
22- **[example-servant-elm](https://github.com/haskell-servant/example-servant-elm)**:
21- **[example-servant-elm](https://github.com/haskell-servant/example-servant-elm)**:
23
22
24− An example for a project consisting of
23+ An example for a project consisting of
24+
25+ - a backend web server written using **servant-server**,
26+ - a frontend written in [elm](http://elm-lang.org/) using
27+ [servant-elm](https://github.com/mattjbray/servant-elm) to generate client
28+ functions in elm for the API,
29+ - test-suites for both the backend and the frontend.
30+
31+- **[servant-purescript](https://github.com/eskimor/servant-purescript/tree/master/examples/central-counter)**:
32+
33+ An example consisting of
25
34
26− - a backend web server written using **servant-server**,
35+ - a backend in uses `haskell-servant`
27− - a frontend written in [elm](http://elm-lang.org/) using
36+ - a frontend written in [PureScript](http://www.purescript.org/) using
28− [servant-elm](https://github.com/mattjbray/servant-elm) to generate client
37+ [servant-purescript](https://github.com/eskimor/servant-purescript) to generate
29− functions in elm for the API,
38+ an API wrapper in PureScript to interface the web API with
30− - test-suites for both the backend and the frontend.
31
39
32
40
33- **[example-servant-persistent](https://github.com/haskell-servant/example-servant-persistent)**:
41- **[example-servant-persistent](https://github.com/haskell-servant/example-servant-persistent)**:
34
42
35− An example for a web server written with **servant-server** and
43+ An example for a web server written with **servant-server** and
36− [persistent](https://www.stackage.org/package/persistent) for writing data
44+ [persistent](https://www.stackage.org/package/persistent) for writing data
37− into a database.
45+ into a database.