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

Module documentation for 0.7

This version can be pinned in stack with:yam-0.7@sha256:12347862686c98b5fa3a20f84548c2f176c090087f300e0558d320980c343669,5943

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)