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
import           Salak.Yaml
import           Servant
import           Yam
import qualified Control.Category    as C
import           Data.Version

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

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

main = runSalakWith "app" YAML $ do
  al <- require  "yam.application"
  sw <- require  "yam.swagger"
  lc <- requireD "yam.logging"
  start al sw (makeVersion []) lc spanNoNotifier emptyAM serveWarp (Proxy @API) service

comments powered byDisqus