Deprecated

In favour of

yam

A wrapper of servant https://github.com/leptonyu/yam#readme

Version on this page:0.6.3
LTS Haskell 13.30:0.5.17
Stackage Nightly 2019-07-31:0.7
Latest on Hackage:0.7

See all snapshots yam appears in

BSD-3-Clause licensed by Daniel YU
Maintained by Daniel YU

Module documentation for 0.6.3

This version can be pinned in stack with:yam-0.6.3@sha256:45d01f69427a53201909894b5858bd520bc8ba61f277241d79309459c9289607,5867

yam

package name version
yam Hackage
yam-datasource Hackage
yam-redis Hackage

stackage LTS package stackage Nightly package Build Status

Servant based Web Wrapper for Production in Haskell.


import           Salak.Yaml
import           Servant
import           Yam
import           Data.Version

type API = "hello" :> Get '[PlainText] Text

service :: ServerT API AppSimple
service = return "world"

main = start "app" YAML (makeVersion []) (return emptyAM) (Proxy @API) (return service)

comments powered byDisqus