yam: A wrapper of servant

[ bsd3, deprecated, library, web ] [ Propose Tags ] [ Report a vulnerability ]
Deprecated in favor of boots-app

A out-of-the-box wrapper of servant.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.4.0, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.5.6, 0.5.7, 0.5.8, 0.5.9, 0.5.10, 0.5.11, 0.5.12, 0.5.13, 0.5.14, 0.5.15, 0.5.16, 0.5.17, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7 (info)
Dependencies aeson (>=1.4.4.0 && <1.5), base (>=4.10 && <5), base16-bytestring (>=0.1.1.6 && <0.2), binary (>=0.8.6.0 && <0.9), bytestring (>=0.10.8.2 && <0.11), data-default (>=0.7.1.1 && <0.8), exceptions (>=0.10.2 && <0.11), fast-logger (>=2.4.16 && <2.5), http-client (>=0.6.4 && <0.7), http-types (>=0.12.3 && <0.13), lens (>=4.17.1 && <4.18), menshen (>=0.0.3 && <0.1), monad-logger (>=0.3.30 && <0.4), mtl (>=2.2.2 && <2.3), mwc-random (>=0.14.0.0 && <0.15), reflection (>=2.1.4 && <2.2), salak (>=0.3 && <0.4), scientific (>=0.3.6.2 && <0.4), servant-client (>=0.16 && <0.17), servant-server (>=0.16 && <0.17), servant-swagger (>=1.1.7.1 && <1.2), servant-swagger-ui (>=0.3.4.3.22.2 && <0.4), swagger2 (>=2.3.0.1 && <2.5), text (>=1.2.3.1 && <1.3), transformers (>=0.5.6.2 && <0.6), unliftio-core (>=0.1.2.0 && <0.2), unordered-containers (>=0.2.10.0 && <0.3), vault (>=0.3.1.3 && <0.4), vector (>=0.12.0.3 && <0.13), wai (>=3.2.2.1 && <3.3), warp (>=3.2.27 && <3.4) [details]
License BSD-3-Clause
Copyright (c) 2018 Daniel YU
Author Daniel YU
Maintainer Daniel YU <leptonyu@gmail.com>
Category Web
Home page https://github.com/leptonyu/yam#readme
Uploaded by leptonyu at 2019-07-24T14:46:38Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 8370 total (67 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-08-02 [all 1 reports]

Readme for yam-0.7

[back to package description]

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)